forked from omegaup/omegaup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
175 lines (166 loc) · 3.74 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
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
services:
frontend:
build:
dockerfile: ./Dockerfile.dev-php
context: ./stuff/docker/
image: omegaup/dev-php:20231008
user: "${UID_GID}"
restart: always
volumes:
- type: bind
source: .
target: /opt/omegaup
- 'omegaupdata:/var/lib/omegaup'
depends_on:
- mysql
- gitserver
- grader
ports:
- target: 8001
published: 8001
protocol: tcp
mode: host
environment:
CI: "${CI:-false}"
MYSQL_TCP_PORT: 13306
gitserver:
image: omegaup/gitserver:v1.9.13
entrypoint: ["wait-for-it", "mysql:13306", "--", "/usr/bin/omegaup-gitserver"]
user: "${UID_GID}"
restart: always
depends_on:
- mysql
volumes:
- type: bind
source: ./stuff/docker/etc/omegaup/gitserver
target: /etc/omegaup/gitserver
read_only: true
- 'omegaupdata:/var/lib/omegaup'
expose:
- '33861'
- '33862'
- '6060'
ports:
- target: 33861
published: 33861
protocol: tcp
mode: host
broadcaster:
image: omegaup/backend:v1.9.35
entrypoint: ["/usr/bin/omegaup-broadcaster"]
user: "${UID_GID}"
restart: always
depends_on:
- mysql
volumes:
- type: bind
source: ./stuff/docker/etc/omegaup/broadcaster
target: /etc/omegaup/broadcaster
read_only: true
expose:
- '6060'
- '32672'
- '22291'
grader:
image: omegaup/backend:v1.9.35
entrypoint: ["wait-for-it", "mysql:13306", "--", "/usr/bin/omegaup-grader"]
user: "${UID_GID}"
restart: always
depends_on:
- mysql
volumes:
- type: bind
source: ./stuff/docker/etc/omegaup/grader
target: /etc/omegaup/grader
read_only: true
- 'omegaupdata:/var/lib/omegaup'
expose:
- '6060'
- '21680'
ports:
- target: 21680
published: 21680
protocol: tcp
mode: host
runner:
image: omegaup/runner:v1.9.35
entrypoint: ["wait-for-it", "grader:11302", "--", "/usr/bin/omegaup-runner", "-noop-sandbox"]
user: "${UID_GID}"
restart: always
depends_on:
- grader
volumes:
- type: bind
source: ./stuff/docker/etc/omegaup/runner
target: /etc/omegaup/runner
read_only: true
expose:
- '6060'
mysql:
image: mysql:8.0
restart: always
environment:
MYSQL_DATABASE: 'omegaup'
MYSQL_USER: 'omegaup'
MYSQL_PASSWORD: 'omegaup'
MYSQL_ROOT_PASSWORD: 'omegaup'
MYSQL_TCP_PORT: 13306
command:
- --max_execution_time=30000
- --lock_wait_timeout=10
- --wait_timeout=20
expose:
- '13306'
volumes:
- 'dbdata:/var/lib/mysql'
ports:
- target: 13306
published: 13306
protocol: tcp
mode: host
cap_add:
- SYS_NICE
rabbitmq:
image: rabbitmq:3-management-alpine
restart: always
environment:
RABBITMQ_DEFAULT_USER: 'omegaup'
RABBITMQ_DEFAULT_PASS: 'omegaup'
expose:
- '5672'
- '15672'
volumes:
- 'rabbitmq:/var/lib/rabbitmq'
ports:
- target: 5672
published: 5672
protocol: tcp
mode: host
- target: 15672
published: 15672
protocol: tcp
mode: host
redis:
image: redis
restart: always
command: ['redis-server', '/etc/redis/redis.conf']
expose:
- '6379'
volumes:
- type: volume
source: redis
target: /data
- type: bind
source: ./stuff/docker/etc/redis/
target: /etc/redis
read_only: true
ports:
- target: 6379
published: 6379
protocol: tcp
mode: host
volumes:
dbdata:
omegaupdata:
rabbitmq:
redis: