Files
AppRefeicoes/docker-compose.yml
2026-10-26 14:16:09 +00:00

33 lines
693 B
YAML

services:
nginx:
image: nginx:stable-alpine
ports:
- "6969:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
app:
condition: service_healthy
restart: unless-stopped
app:
build: .
environment:
NODE_ENV: production
PORT: "3000"
DATA_DIR: /app/data
expose:
- "3000"
volumes:
- meals-data:/app/data
restart: unless-stopped
healthcheck:
test: ["CMD", "node", "-e", "fetch('http://localhost:3000/api/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
volumes:
meals-data: