Files
gitlab-instance-0a899031_na…/docker/docker-compose.prod.yml
2025-11-13 05:05:53 +08:00

31 lines
604 B
YAML

version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "80:3000"
environment:
- NODE_ENV=production
env_file:
- .env.local
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
deploy:
resources:
limits:
memory: 512M
reservations:
memory: 256M
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"