-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (54 loc) · 1.4 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
50
51
52
53
54
55
version: "3.8"
services:
elena_backend:
container_name: elena-backend
build:
dockerfile: Dockerfile
context: backend
environment:
- GUNICORN_CMD_ARGS=--reload
- MONGO_URI=mongodb://root:password@elena_dev_db:27017
- AUTH_SECRET=adc247dc6240d79df1875097199a3fdb5607213179358cc5f773f9f55da92f14
- ELEVATION_URI=http://localhost@elena_elevation_server:8080/api/v1/lookup
volumes:
- "./backend/src:/app/src"
- "/maps"
ports:
- "5001:5001"
elena_frontend:
container_name: elena-frontend
build:
dockerfile: Dockerfile
context: frontend
ports:
- "3000:3000"
stdin_open: true
volumes:
- ./frontend:/app
- /app/node_modules
elena_dev_db:
container_name: elena-dev-db
command: mongod --quiet --logpath /dev/null
image: mongo:latest
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
ports:
- 27017:27017
volumes:
- mongo_dev_db_container:/data/db
elena_elevation_server:
container_name: elena-elevation-server
build:
context: elevation
dockerfile: docker/Dockerfile
volumes:
- "./elevation/data:/code/data"
- "./elevation/certs:/code/certs"
environment:
- PYTHONUNBUFFERED=1
command: stdbuf -i0 -o0 -e0 python3 server.py
ports:
- 8080:8080
volumes:
mongo_dev_db_container: