2026-03-08 22:42:53 -05:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
breedr:
|
|
|
|
|
build: .
|
|
|
|
|
container_name: breedr
|
|
|
|
|
ports:
|
|
|
|
|
- "3000:3000"
|
|
|
|
|
volumes:
|
|
|
|
|
- ./data:/app/data
|
|
|
|
|
- ./uploads:/app/uploads
|
2026-03-09 19:24:41 -05:00
|
|
|
- ./static:/app/static
|
2026-03-08 22:42:53 -05:00
|
|
|
environment:
|
|
|
|
|
- NODE_ENV=production
|
|
|
|
|
- PORT=3000
|
|
|
|
|
- DB_PATH=/app/data/breedr.db
|
|
|
|
|
- UPLOAD_PATH=/app/uploads
|
2026-03-09 19:24:41 -05:00
|
|
|
- STATIC_PATH=/app/static
|
2026-03-08 22:42:53 -05:00
|
|
|
restart: unless-stopped
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/api/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"]
|
|
|
|
|
interval: 30s
|
|
|
|
|
timeout: 10s
|
|
|
|
|
retries: 3
|
2026-03-09 19:24:41 -05:00
|
|
|
start_period: 40s
|