-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (34 loc) · 957 Bytes
/
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
version: '3'
services:
mongo:
container_name: location_db
image: mongo:latest
volumes:
- ./mongo:/data/db
ports:
- 27017:27017
exporter:
container_name: loc_exporter
image: python:3.7
environment:
- MONGO_URI=mongodb://mongo:27017/
- FIREBASE_URI=${{ secrets.FIREBASE_URI }}
- SPEED=10
- UPDATE=5
volumes:
- ./backend/loc-exporter.py:/loc-exporter.py
- ./keys:/keys
- ./misc/paradas.json:/paradas.json
command: ["python3", "-u", "loc-exporter.py"]
simulator:
container_name: bus_simulator
image: python:3.7
environment:
- MONGO_URI=mongodb://mongo:27017/
- LOC_SPAWN_INTERVAL=5
- LOC_TTL=30
- DRY_RUN=false
volumes:
- ./backend/bus-sim.py:/bus-sim.py
- ./misc/locs.csv:/locs.csv
command: ["python3", "-u", "bus-sim.py"]