This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
version: '3.9'
|
||||
|
||||
# Development overrides — applied automatically alongside docker-compose.yml.
|
||||
# Backend mounts source and hot-reloads; frontend runs Vite dev server.
|
||||
# Production deploy: docker compose -f docker-compose.yml up --build -d
|
||||
|
||||
services:
|
||||
backend:
|
||||
volumes:
|
||||
- ./backend:/app
|
||||
environment:
|
||||
DEBUG: "true"
|
||||
WEBHOOK_URL: ""
|
||||
# Force polling so uvicorn --reload detects file changes on NAS filesystem
|
||||
WATCHFILES_FORCE_POLLING: "1"
|
||||
command: sh -c "alembic upgrade head && uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload"
|
||||
|
||||
frontend:
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile.dev
|
||||
volumes:
|
||||
- ./frontend:/app
|
||||
- frontend_node_modules:/app/node_modules
|
||||
- frontend_dist:/app/dist
|
||||
environment:
|
||||
CHOKIDAR_USEPOLLING: "true"
|
||||
|
||||
nginx:
|
||||
volumes:
|
||||
- ./nginx/nginx.dev.conf:/etc/nginx/nginx.conf:ro
|
||||
- frontend_dist:/usr/share/nginx/html
|
||||
|
||||
volumes:
|
||||
frontend_node_modules:
|
||||
frontend_dist:
|
||||
Reference in New Issue
Block a user