ERP-node/docker-compose.frontend.win...

40 lines
903 B
YAML
Raw Permalink Normal View History

2025-08-21 09:41:46 +09:00
version: "3.8"
services:
# Next.js 프론트엔드만
frontend:
build:
context: ./frontend
dockerfile: ../docker/dev/frontend.Dockerfile
2025-08-21 09:41:46 +09:00
container_name: pms-frontend-win
ports:
- "9771:3000"
environment:
- NEXT_PUBLIC_API_URL=http://localhost:8080/api
2025-09-22 17:46:23 +09:00
- WATCHPACK_POLLING=true
- NODE_OPTIONS=--max-old-space-size=4096
deploy:
resources:
limits:
memory: 6G
reservations:
memory: 2G
2025-08-21 09:41:46 +09:00
volumes:
- ./frontend:/app
- /app/node_modules
- /app/.next
networks:
- pms-network
restart: unless-stopped
2025-09-22 17:46:23 +09:00
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000", "||", "exit", "1"]
interval: 30s
timeout: 15s
retries: 3
start_period: 60s
2025-08-21 09:41:46 +09:00
networks:
pms-network:
driver: bridge
2025-09-22 17:46:23 +09:00
external: false