fix: Mount ./static:/app/static volume and add STATIC_PATH env var
This commit is contained in:
@@ -9,15 +9,17 @@ services:
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
- ./uploads:/app/uploads
|
||||
- ./static:/app/static
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- PORT=3000
|
||||
- DB_PATH=/app/data/breedr.db
|
||||
- UPLOAD_PATH=/app/uploads
|
||||
- STATIC_PATH=/app/static
|
||||
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
|
||||
start_period: 40s
|
||||
start_period: 40s
|
||||
|
||||
Reference in New Issue
Block a user