first
This commit is contained in:
24
docker-compose.yml
Normal file
24
docker-compose.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
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:
|
||||
Reference in New Issue
Block a user