Files
vexplor/docker/prod/docker-compose.backend.prod.yml

38 lines
1.1 KiB
YAML
Raw Normal View History

2025-08-21 09:41:46 +09:00
services:
2025-10-02 16:14:22 +09:00
# Node.js 백엔드
plm-backend:
2025-08-21 09:41:46 +09:00
build:
context: ../../backend-node
2025-10-02 16:14:22 +09:00
dockerfile: ../docker/prod/backend.Dockerfile
container_name: plm-backend
restart: always
2025-08-21 09:41:46 +09:00
environment:
2025-10-02 16:14:22 +09:00
NODE_ENV: production
PORT: "3001"
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: https://v1.vexplor.com
CORS_CREDENTIALS: "true"
LOG_LEVEL: info
volumes:
- /home/vexplor/backend_data:/app/uploads
labels:
- traefik.enable=true
- traefik.http.routers.backend.rule=Host(`api.vexplor.com`)
- traefik.http.routers.backend.entrypoints=websecure,web
- traefik.http.routers.backend.tls=true
- traefik.http.routers.backend.tls.certresolver=le
- traefik.http.services.backend.loadbalancer.server.port=3001
2025-08-21 09:41:46 +09:00
healthcheck:
2025-10-02 16:14:22 +09:00
test: ["CMD", "curl", "-f", "http://localhost:3001/health"]
2025-08-21 09:41:46 +09:00
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
networks:
2025-10-02 16:14:22 +09:00
default:
name: toktork_server_default
external: true