fix: Mount ./static:/app/static volume and add STATIC_PATH env var

This commit is contained in:
2026-03-09 19:24:41 -05:00
parent fc0bf4c6db
commit 4f81c3129e

View File

@@ -9,15 +9,17 @@ services:
volumes: volumes:
- ./data:/app/data - ./data:/app/data
- ./uploads:/app/uploads - ./uploads:/app/uploads
- ./static:/app/static
environment: environment:
- NODE_ENV=production - NODE_ENV=production
- PORT=3000 - PORT=3000
- DB_PATH=/app/data/breedr.db - DB_PATH=/app/data/breedr.db
- UPLOAD_PATH=/app/uploads - UPLOAD_PATH=/app/uploads
- STATIC_PATH=/app/static
restart: unless-stopped restart: unless-stopped
healthcheck: healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/api/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"] test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/api/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"]
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 3 retries: 3
start_period: 40s start_period: 40s