37 lines
812 B
YAML
37 lines
812 B
YAML
services:
|
|
backend:
|
|
image: ghcr.io/pouzor/homelable-backend:latest
|
|
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:
|
|
image: ghcr.io/pouzor/homelable-frontend:latest
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8084:80"
|
|
depends_on:
|
|
- backend
|
|
networks:
|
|
- homelable
|
|
|
|
networks:
|
|
homelable:
|
|
driver: bridge
|