31 lines
1014 B
YAML
31 lines
1014 B
YAML
services:
|
|
# Node.js 백엔드 (운영용)
|
|
backend:
|
|
build:
|
|
context: ../../backend-node
|
|
dockerfile: ../docker/prod/backend.Dockerfile # 운영용 Dockerfile
|
|
container_name: pms-backend-prod
|
|
network_mode: "host" # 호스트 네트워크 모드
|
|
environment:
|
|
- NODE_ENV=production
|
|
- PORT=8080
|
|
- HOST=0.0.0.0 # 모든 인터페이스에서 바인딩
|
|
- 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://192.168.0.70:5555,http://39.117.244.52:5555,http://localhost:9771
|
|
- CORS_CREDENTIALS=true
|
|
- LOG_LEVEL=info
|
|
- ENCRYPTION_KEY=ilshin-plm-mail-encryption-key-32characters-2024-secure
|
|
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
|