안쓰는 서비스 안올리도록 수정정

This commit is contained in:
chpark 2024-12-19 12:11:03 +09:00
parent 9e0a67d6bc
commit 34b16d61d8
2 changed files with 42 additions and 42 deletions

View File

@ -3,34 +3,34 @@
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
# 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
plm-app:
build:

View File

@ -3,20 +3,20 @@
version: "3.8"
services:
plm-admin:
build:
target: development
env_file:
- .env.${NODE_ENV:-development}
environment:
- NODE_ENV=${NODE_ENV:-development}
- NEXT_WEBPACK_USEPOLLING=1
- WATCHPACK_POLLING=true
# 개발 환경에서는 healthcheck 비활성화
volumes:
- ../../waceplm/uploads:/app/uploads
# healthcheck:
# disable: true
# plm-admin:
# build:
# target: development
# env_file:
# - .env.${NODE_ENV:-development}
# environment:
# - NODE_ENV=${NODE_ENV:-development}
# - NEXT_WEBPACK_USEPOLLING=1
# - WATCHPACK_POLLING=true
# # 개발 환경에서는 healthcheck 비활성화
# volumes:
# - ../../waceplm/uploads:/app/uploads
# # healthcheck:
# # disable: true
plm-app:
build: