-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
89 lines (84 loc) · 2.36 KB
/
docker-compose.dev.yml
File metadata and controls
89 lines (84 loc) · 2.36 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
services:
app:
build:
context: .
target: base # Stop at dependency stage
container_name: meshrf_dev
command: npm run dev -- --host
ports:
- "3100:5173" # Vite Dev Port
volumes:
- .:/app
- /app/node_modules
environment:
- VITE_MAP_LAT=45.5152
- VITE_MAP_LNG=-122.6784
- API_TARGET=http://rf-engine:5001
restart: unless-stopped
networks:
- meshrf_net
rf-engine:
build: ./rf-engine
container_name: rf_engine_dev
ports:
- "5001:5001" # Expose to host for local dev
# Overlay dev volumes for Python hot-reloading
volumes:
- ./rf-engine:/app
- ./cache:/app/cache
# Run uvicorn with reload
command: ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "5001", "--reload"]
environment:
- ELEVATION_API_URL=http://opentopodata:5000
- ELEVATION_DATASET=${ELEVATION_DATASET:-ned10m}
- REDIS_PASSWORD=${REDIS_PASSWORD:-changeme}
depends_on:
- redis
restart: unless-stopped
networks:
- meshrf_net
rf-worker:
build: ./rf-engine
container_name: rf_worker_dev
# Overlay dev volumes for hot-reloading code in worker
volumes:
- ./rf-engine:/app
- ./cache:/app/cache
# Celery worker with autoreload (using watchdog if available, otherwise just worker)
# Using normal worker for now, manual restart needed for deep logic changes if watchdog not set up
command: celery -A worker.celery_app worker --loglevel=info
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=${REDIS_PASSWORD:-changeme}
- ELEVATION_API_URL=http://opentopodata:5000
- ELEVATION_DATASET=${ELEVATION_DATASET:-ned10m}
depends_on:
- rf-engine
- redis
restart: unless-stopped
networks:
- meshrf_net
redis:
image: redis:alpine
user: nobody
command: redis-server --requirepass ${REDIS_PASSWORD:-changeme}
volumes:
- ./redis_data:/data
restart: always
networks:
- meshrf_net
opentopodata:
build:
context: ./opentopodata
dockerfile: docker/Dockerfile
container_name: opentopodata_dev
volumes:
- ./data/opentopodata:/app/data:ro
- ./data/opentopodata/config.yaml:/app/config.yaml:ro
restart: unless-stopped
networks:
- meshrf_net
networks:
meshrf_net:
driver: bridge