25 lines
508 B
YAML
25 lines
508 B
YAML
services:
|
|
backend:
|
|
build: ./backend
|
|
environment:
|
|
- HA_BASE_URL=${HA_BASE_URL:-http://10.0.0.2:8123}
|
|
- HA_TOKEN=${HA_TOKEN}
|
|
- DATABASE_URL=sqlite:///./data/ha_explorer.db
|
|
- CORS_ORIGINS=["http://localhost", "http://localhost:8080"]
|
|
volumes:
|
|
- db_data:/app/data
|
|
ports:
|
|
- "8000:8000"
|
|
restart: unless-stopped
|
|
|
|
frontend:
|
|
build: ./frontend
|
|
ports:
|
|
- "8080:80"
|
|
depends_on:
|
|
- backend
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
db_data:
|