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

37 lines
854 B
YAML
Raw Normal View History

2025-08-22 15:45:05 +09:00
version: "3.8"
2025-08-21 09:41:46 +09:00
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-08-21 09:41:46 +09:00
dockerfile: Dockerfile
container_name: pms-backend-linux
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
- CORS_ORIGIN=http://localhost:9771
- CORS_CREDENTIALS=true
- LOG_LEVEL=debug
volumes:
- ./backend-node:/app
- /app/node_modules
2025-08-21 09:41:46 +09:00
networks:
- pms-network
restart: unless-stopped
healthcheck:
2025-08-22 15:45:05 +09:00
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
2025-08-21 09:41:46 +09:00
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
networks:
pms-network:
2025-08-22 15:45:05 +09:00
driver: bridge