ERP-node/docker-compose.backend.prod...

35 lines
887 B
YAML

version: "3.8"
services:
# Node.js 백엔드 (운영용)
backend:
build:
context: ./backend-node
dockerfile: Dockerfile # 운영용 Dockerfile
container_name: pms-backend-prod
ports:
- "8080:8080"
environment:
- NODE_ENV=production
- PORT=8080
- DATABASE_URL=postgresql://postgres:ph0909!!@39.117.244.52:11132/plm
- JWT_SECRET=ilshin-plm-super-secret-jwt-key-2024
- JWT_EXPIRES_IN=24h
- CORS_ORIGIN=http://localhost:9771
- CORS_CREDENTIALS=true
- LOG_LEVEL=info
# 운영용에서는 볼륨 마운트 없음 (보안상 이유)
networks:
- pms-network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
networks:
pms-network:
driver: bridge