-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (47 loc) · 1.31 KB
/
docker-compose.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
48
49
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: unless-stopped
build:
context: .
dockerfile: Dockerfile.backend
volumes:
- backend_static_volume:/usr/src/app/static
ports:
- '8080:8080'
command: uvicorn main:app --host 0.0.0.0 --port 8080 #--ssl-keyfile=./cert.key --ssl-certfile=./cert.pem --ssl-cert-reqs=1 --ssl-ca-certs=./cloudflare.crt --reload
frontend:
container_name: frontend
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile.frontend
args:
- API_URL=${API_URL}
- OSRM_URL=${OSRM_URL}
ports:
- 80:80
- 443:443
volumes:
- ./frontend/nginx:/etc/nginx/conf.d
- ./ssl:/etc/ssl
env_file:
- .env
depends_on:
- backend
- osrm
volumes:
backend_static_volume: