maplestory/docker-compose.yml
caadiq ea9a6461f2 배포 모드 전환: 프로덕션 Dockerfile + docker-compose 재구성
- frontend/Dockerfile: 멀티스테이지 (node 빌드 → serve로 dist 정적 서빙).
  포트 5173은 그대로 유지해서 Caddy 설정 변경 불필요
- backend/Dockerfile: npm ci --omit=dev + npm start (node --watch 제거)
- docker-compose.yml: volumes/모듈 마운트 제거, build 기반으로 변경,
  restart: unless-stopped, NODE_ENV=production 추가
- .dockerignore 양쪽 추가해서 이미지에 node_modules/.git 제외

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 20:38:12 +09:00

31 lines
577 B
YAML

services:
frontend:
build: ./frontend
container_name: maplestory-frontend
labels:
- "com.centurylinklabs.watchtower.enable=false"
networks:
- caddy
restart: unless-stopped
backend:
build: ./backend
container_name: maplestory-backend
env_file: .env
environment:
- NODE_ENV=production
labels:
- "com.centurylinklabs.watchtower.enable=false"
networks:
- caddy
- db
- app
restart: unless-stopped
networks:
caddy:
external: true
db:
external: true
app:
external: true