Files
homelable/docker-compose.yml
T

39 lines
774 B
YAML
Raw Normal View History

services:
backend:
build:
context: .
dockerfile: Dockerfile.backend
restart: unless-stopped
environment:
SECRET_KEY: ${SECRET_KEY:-change_me_in_production}
SQLITE_PATH: /app/data/homelab.db
CONFIG_PATH: /app/config.yml
CORS_ORIGINS: '["http://localhost:3000"]'
volumes:
- backend_data:/app/data
- ./backend/config.yml:/app/config.yml
networks:
- homelable
# Required for ping-based status checks
cap_add:
- NET_RAW
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
restart: unless-stopped
ports:
- "3000:80"
depends_on:
- backend
networks:
- homelable
volumes:
backend_data:
networks:
homelable:
driver: bridge