ERP-node/docker-compose.backend.win.yml

51 lines
1.1 KiB
YAML
Raw Normal View History

2025-08-21 09:41:46 +09:00
version: "3.8"
services:
2025-08-22 15:45:05 +09:00
# Node.js 백엔드
2025-08-21 09:41:46 +09:00
backend:
build:
2025-08-22 15:45:05 +09:00
context: ./backend-node
2025-09-22 17:46:23 +09:00
dockerfile: Dockerfile.win
2025-08-21 09:41:46 +09:00
container_name: pms-backend-win
ports:
- "8080:8080"
environment:
2025-08-22 15:45:05 +09:00
- NODE_ENV=development
- 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
2025-10-13 12:00:41 +09:00
- ENCRYPTION_KEY=ilshin-plm-encryption-key-2024-secure-32bytes
2025-08-22 15:45:05 +09:00
- CORS_ORIGIN=http://localhost:9771
- CORS_CREDENTIALS=true
- LOG_LEVEL=debug
volumes:
- ./backend-node:/app
- /app/node_modules
2025-09-22 17:46:23 +09:00
- /app/dist
2025-08-21 09:41:46 +09:00
networks:
- pms-network
restart: unless-stopped
healthcheck:
2025-10-13 12:00:41 +09:00
test:
[
"CMD",
"wget",
"--no-verbose",
"--tries=1",
"--spider",
"http://localhost:8080/health",
"||",
"exit",
"1",
]
2025-08-21 09:41:46 +09:00
interval: 30s
2025-09-22 17:46:23 +09:00
timeout: 15s
retries: 5
start_period: 90s
2025-08-21 09:41:46 +09:00
networks:
pms-network:
driver: bridge
2025-09-22 17:46:23 +09:00
external: false