-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
38 lines (34 loc) · 1018 Bytes
/
Copy pathdocker-compose.dev.yml
File metadata and controls
38 lines (34 loc) · 1018 Bytes
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
31
32
33
34
35
36
37
38
services:
frontend:
profiles:
- prod
backend:
command: sh -c "alembic upgrade head && python -m app.db.seed && uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload"
volumes:
- ./backend:/app/backend
- ./common:/app/common
- ./Ai_models:/app/Ai_models:ro
worker:
command: celery -A worker.app.celery_app.celery_app worker --loglevel=INFO
volumes:
- ./worker:/app/worker
- ./backend:/app/backend
- ./common:/app/common
- ./Ai_models:/app/Ai_models:ro
frontend-dev:
image: node:20-alpine
working_dir: /app/frontend
depends_on:
backend:
condition: service_healthy
environment:
CHOKIDAR_USEPOLLING: "true"
VITE_DEV_PROXY_TARGET: "http://backend:8000"
command: sh -c "npm install && npm run dev -- --host 0.0.0.0 --port 8080"
ports:
- "8080:8080"
volumes:
- ./frontend:/app/frontend
- frontend-node-modules:/app/frontend/node_modules
volumes:
frontend-node-modules: