-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
102 lines (93 loc) · 2.07 KB
/
docker-compose.yaml
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
99
100
101
102
version: "3.3"
services:
contest_service_db:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
MONGO_INITDB_DATABASE: contestdb
# volumes:
# - contest_service_db_volume:/data/db
ports:
- 27017:27017
contest_service:
build:
context: .
dockerfile: ./Dockerfile
target: contest_service
ports:
- 50051:50051
depends_on:
- contest_service_db
evaluation_service:
build:
context: .
dockerfile: ./Dockerfile
target: evaluation_service
ports:
- 50052:50051
submission_service_db:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
MONGO_INITDB_DATABASE: submissionsdb
# volumes:
# - ./submission_service/db/init.js:/docker-entrypoint-initdb.d/init.js
# - submission_service_db_volume:/data/db
ports:
- 27020:27017
submission_service:
build:
context: .
dockerfile: ./Dockerfile
target: submission_service
ports:
- 50053:50051
depends_on:
- submission_service_db
admin_web_server:
build:
context: .
dockerfile: ./Dockerfile
target: admin
ports:
- 8001:80
participant_web_server:
build:
context: .
dockerfile: ./Dockerfile
target: participant
ports:
- 8000:80
dispatcher_service:
build:
context: .
dockerfile: ./Dockerfile
target: dispatcher_service
ports:
- "127.0.0.1:50056:50051"
depends_on:
- worker_service_1
- worker_service_2
worker_service_1:
privileged: true
build:
context: .
dockerfile: ./Dockerfile
target: worker_service
ports:
- "127.0.0.1:50058:50051"
worker_service_2:
privileged: true
build:
context: .
dockerfile: ./Dockerfile
target: worker_service
ports:
- "127.0.0.1:50059:50051"
# volumes:
# contest_service_db_volume:
# submission_service_db_volume: