docker-compose.prod.yml•966 B
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "80:3000"
environment:
- NODE_ENV=production
- GITHUB_TOKEN=${GITHUB_TOKEN}
- NOTION_API_KEY=${NOTION_API_KEY}
- NOTION_DATABASE_ID=${NOTION_DATABASE_ID}
- GITHUB_WEBHOOK_SECRET=${GITHUB_WEBHOOK_SECRET}
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
nginx:
image: nginx:alpine
ports:
- "443:443"
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./ssl:/etc/nginx/ssl:ro
depends_on:
- app
restart: unless-stopped
healthcheck:
test: ["CMD", "nginx", "-t"]
interval: 30s
timeout: 10s
retries: 3