41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
# Docker Compose for Zebra Power - Development
|
|
|
|
services:
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile.dev
|
|
container_name: zebra_backend_dev
|
|
ports:
|
|
- "8000:8000"
|
|
volumes:
|
|
- ./backend/app:/app/app
|
|
- ./backend/migrate_to_unified_hosts.py:/app/migrate_to_unified_hosts.py
|
|
- ./backend/test_api.py:/app/test_api.py
|
|
- ./data:/app/data
|
|
environment:
|
|
- DATABASE_URL=sqlite:///data/zebra.db
|
|
- CORS_ORIGINS=http://localhost:3000,http://localhost
|
|
restart: unless-stopped
|
|
# Required for WOL packets
|
|
network_mode: host
|
|
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: Dockerfile.dev
|
|
container_name: zebra_frontend_dev
|
|
ports:
|
|
- "3000:3000"
|
|
volumes:
|
|
- ./frontend/src:/app/src
|
|
- ./frontend/public:/app/public
|
|
- ./frontend/vite.config.js:/app/vite.config.js
|
|
environment:
|
|
- VITE_API_URL=http://localhost:8000/api
|
|
depends_on:
|
|
- backend
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
data: |