-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.override.yml
More file actions
30 lines (27 loc) · 1.02 KB
/
Copy pathdocker-compose.override.yml
File metadata and controls
30 lines (27 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Dev overrides — merged automatically by `docker compose up`.
# Engine runs with --reload and mounted source; web runs the Vite dev server.
services:
engine:
# Mount source for hot reload; uvicorn --reload restarts on change.
command: sh -c "alembic upgrade head && uvicorn main:app --host 0.0.0.0 --port 8000 --reload"
volumes:
- ./engine:/app
# Keep the image's virtualenv — don't let the bind mount shadow it.
- /app/.venv
web:
# Dev: Vite dev server instead of the nginx production image.
build: !reset null
image: node:22-alpine
working_dir: /app
command: sh -c "npm install && npm run dev -- --host 0.0.0.0 --port 5173"
environment:
# Single-origin: the app uses relative URLs and Vite proxies /api and
# /ws to the engine service over the compose network.
- VITE_PROXY_TARGET=http://engine:8000
volumes:
- ./web:/app
- web_node_modules:/app/node_modules
ports: !override
- "${WEB_PORT:-5173}:5173"
volumes:
web_node_modules: