-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
47 lines (46 loc) · 1.05 KB
/
docker-compose.dev.yml
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
version: "3.9"
services:
osrm:
container_name: osrm
image: osrm/osrm-backend
restart: unless-stopped
volumes:
- type: bind
source: ./osrm
target: /opt/data
ports:
- "5000:5000"
command: osrm-routed --algorithm mld data/washington-latest.osrm
backend:
container_name: backend
restart: on-failure
build:
context: .
dockerfile: Dockerfile.backend
target: development
volumes:
- ./backend:/usr/src/app
ports:
- "8080:8080"
command: bash -c "pip install -e . && uvicorn main:app --host 0.0.0.0 --port 8080 --reload"
frontend:
container_name: frontend
restart: on-failure
build:
context: .
dockerfile: Dockerfile.frontend
target: development
args:
- API_URL=${API_URL}
- OSRM_URL=${OSRM_URL}
environment:
- CHOKIDAR_USEPOLLING=true
volumes:
- ./frontend:/usr/src/app
- /usr/src/app/node_modules
ports:
- 5173:5173
command: yarn run dev
depends_on:
- backend
- osrm