Files
byrachel/docker-compose.prod.yml
T
2026-07-24 11:34:00 -03:00

34 lines
872 B
YAML

services:
byrachel:
image: byrachel:amd64
container_name: byrachel
restart: unless-stopped
environment:
- NODE_ENV=production
- DATABASE_URL=/app/data/db.sqlite
- JWT_SECRET=a23e0bc4ca9f706efb26f34de4e40530f4f2c201cb8f6684e2dde65b93fb694a
- ENCRYPTION_KEY=8e66c3ea971ce10924a92d5581b59ecc796f6a400c9423e7ae221f8cee6aeb9d
volumes:
- byrachel-data:/app/data
- byrachel-uploads:/app/public/uploads
healthcheck:
test: ["CMD-SHELL", "node -e \"const http = require('http'); http.get('http://127.0.0.1:3017/api/health', r => { process.exit(r.statusCode === 200 ? 0 : 1) }).on('error', () => process.exit(1))\""]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
networks:
- proxy
volumes:
byrachel-data:
byrachel-uploads:
networks:
proxy:
external: true