duckil_plm/docker-compose.app.yml

105 lines
2.4 KiB
YAML
Raw Permalink Normal View History

2024-12-12 18:31:36 +09:00
# docker-compose.app.yml
# 기본 서비스 정의 (공통 설정)
version: "3.8"
services:
# plm-admin:
# build:
# context: ./plm-admin
# dockerfile: Dockerfile
# target: production
# container_name: plm-admin
# restart: unless-stopped
# env_file:
# - .env.${NODE_ENV:-development}
# ports:
# - "${ADMIN_PORT}:3002"
# environment:
# - NODE_ENV=${NODE_ENV:-development}
# volumes:
# - ./plm-admin:/app
# - /app/node_modules
# logging:
# driver: "json-file"
# options:
# max-size: "10m"
# max-file: "3"
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
# interval: 30s
# timeout: 10s
# retries: 3
# depends_on:
# - plm-api
2024-12-12 18:31:36 +09:00
2024-12-19 11:59:04 +09:00
plm-app:
2024-12-12 18:31:36 +09:00
build:
2024-12-19 11:59:04 +09:00
context: ./plm-app
2024-12-12 18:31:36 +09:00
dockerfile: Dockerfile
target: production
2024-12-19 11:59:04 +09:00
container_name: plm-app
2024-12-12 18:31:36 +09:00
restart: unless-stopped
env_file:
- .env.${NODE_ENV:-development}
ports:
- "${APP_PORT}:3003"
environment:
- NODE_ENV=${NODE_ENV:-development}
volumes:
2024-12-19 11:59:04 +09:00
- ./plm-app:/app
2024-12-12 18:31:36 +09:00
- /app/node_modules
depends_on:
2024-12-19 11:59:04 +09:00
- plm-api
2024-12-12 18:31:36 +09:00
2024-12-19 11:59:04 +09:00
plm-api:
2024-12-12 18:31:36 +09:00
build:
2024-12-19 11:59:04 +09:00
context: ./plm-api
2024-12-12 18:31:36 +09:00
dockerfile: Dockerfile
target: production
2024-12-19 11:59:04 +09:00
container_name: plm-api
2024-12-12 18:31:36 +09:00
restart: unless-stopped
env_file:
- .env.${NODE_ENV:-development}
ports:
- "${API_PORT}:3001"
environment:
- NODE_ENV=${NODE_ENV:-development}
volumes:
2024-12-19 11:59:04 +09:00
- ./plm-api:/app
2024-12-12 18:31:36 +09:00
- /app/node_modules
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3001/health"]
interval: 30s
timeout: 10s
retries: 3
2024-12-19 11:59:04 +09:00
# plm-realtime-api:
# build:
# context: ./plm-realtime-api
# dockerfile: Dockerfile
# target: production
# container_name: plm-realtime-api
# restart: unless-stopped
# env_file:
# - .env.${NODE_ENV:-development}
# ports:
# - "${REALTIME_API_PORT}:3004"
# environment:
# - NODE_ENV=${NODE_ENV:-development}
# volumes:
# - ./plm-realtime-api:/app
# - /app/node_modules
# depends_on:
# - plm-api
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:3004/health"]
# interval: 30s
# timeout: 10s
# retries: 3
2024-12-12 18:31:36 +09:00
2024-12-19 11:59:04 +09:00
# networks:
# default:
# driver: bridge
# internal:
# driver: bridge