forked from omegaup/omegaup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
101 lines (93 loc) · 1.89 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
version: '3.3'
services:
frontend:
build:
dockerfile: ./Dockerfile.dev-php
context: ./stuff/docker/
image: omegaup/dev-php:20200930
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}"
gitserver:
build:
dockerfile: ./Dockerfile.gitserver
context: ./stuff/docker/
image: omegaup/dev-gitserver:20200930
restart: always
depends_on:
- mysql
volumes:
- 'omegaupdata:/var/lib/omegaup'
expose:
- '33681'
- '33682'
- '6060'
broadcaster:
build:
dockerfile: ./Dockerfile.broadcaster
context: ./stuff/docker/
image: omegaup/dev-broadcaster:20200808
restart: always
depends_on:
- mysql
expose:
- '6060'
- '32672'
- '22291'
grader:
build:
dockerfile: ./Dockerfile.grader
context: ./stuff/docker/
image: omegaup/dev-grader:20200808
restart: always
depends_on:
- mysql
volumes:
- 'omegaupdata:/var/lib/omegaup'
expose:
- '6060'
- '21680'
runner:
build:
dockerfile: ./Dockerfile.runner
context: ./stuff/docker/
image: omegaup/dev-runner:20200808
restart: always
depends_on:
- grader
expose:
- '6060'
mysql:
image: mysql:8.0
restart: always
environment:
MYSQL_DATABASE: 'omegaup'
MYSQL_USER: 'omegaup'
MYSQL_PASSWORD: 'omegaup'
MYSQL_ROOT_PASSWORD: 'omegaup'
expose:
- '3306'
volumes:
- 'dbdata:/var/lib/mysql'
ports:
- target: 3306
published: 13306
protocol: tcp
mode: host
volumes:
dbdata:
omegaupdata: