refact: use only server

This commit is contained in:
2025-08-27 13:28:50 +02:00
parent cf8a37f183
commit 2934224787
39 changed files with 6843 additions and 1223 deletions

41
docker-compose.dev.yml Normal file
View File

@@ -0,0 +1,41 @@
# 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: