blob: 6b5c979ccd782f1d22fa3ccec92309901e365b8f (
plain)
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
90
91
92
93
94
95
96
97
98
|
version: "3.8"
services:
frontend:
build:
context: ./frontend
args:
- REACT_APP_OAUTH_CLIENT_ID=${OPENDC_OAUTH_CLIENT_ID}
image: frontend
restart: on-failure
ports:
- "8081:80"
networks:
- backend
api:
build: ./api
image: api
restart: on-failure
# Comment out these 2 lines for deployment
ports:
- "8081:8081"
networks:
- backend
depends_on:
- mongo
environment:
- MONGO_INITDB_ROOT_USERNAME
- MONGO_INITDB_ROOT_PASSWORD
- MONGO_INITDB_DATABASE
- OPENDC_DB
- OPENDC_DB_USERNAME
- OPENDC_DB_PASSWORD
- OPENDC_DB_HOST=mongo
- OPENDC_FLASK_SECRET
- OPENDC_OAUTH_CLIENT_ID
- OPENDC_ROOT_DIR
- OPENDC_SERVER_BASE_URL
simulator:
build: ./simulator
image: simulator
restart: on-failure
networks:
- backend
depends_on:
- mongo
volumes:
- type: bind
source: ./traces
target: /home/gradle/simulator/traces
- type: volume
source: results-volume
target: /results
environment:
- OPENDC_DB
- OPENDC_DB_USERNAME
- OPENDC_DB_PASSWORD
- OPENDC_DB_HOST=mongo
- OPENDC_OUTPUT=/results
mongo:
build:
context: database
restart: on-failure
environment:
- MONGO_INITDB_ROOT_USERNAME
- MONGO_INITDB_ROOT_PASSWORD
- MONGO_INITDB_DATABASE
- OPENDC_DB
- OPENDC_DB_USERNAME
- OPENDC_DB_PASSWORD
networks:
- backend
# Comment out for public deployment
ports:
- "27017:27017"
volumes:
- mongo-volume:/data/db
mongo-express:
image: mongo-express
restart: on-failure
networks:
- backend
depends_on:
- mongo
ports:
- 8082:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: "${MONGO_INITDB_ROOT_USERNAME}"
ME_CONFIG_MONGODB_ADMINPASSWORD: "${MONGO_INITDB_ROOT_PASSWORD}"
volumes:
mongo-volume:
results-volume:
networks:
backend: {}
|