@@ -0,0 +1,34 @@
|
||||
services:
|
||||
backend:
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
# Override env_file: SQLite path must point inside the container volume
|
||||
SQLITE_PATH: /app/data/homelab.db
|
||||
volumes:
|
||||
- /data/homelable:/app/data
|
||||
networks:
|
||||
- homelable
|
||||
# Required for ping-based status checks
|
||||
cap_add:
|
||||
- NET_RAW
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/health"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 6
|
||||
start_period: 15s
|
||||
|
||||
frontend:
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8084:80"
|
||||
depends_on:
|
||||
- backend
|
||||
networks:
|
||||
- homelable
|
||||
|
||||
networks:
|
||||
homelable:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user