-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
118 lines (115 loc) · 2.49 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
services:
# redis:
# image: redis:6.0.9
# restart: always
# ports:
# - "6379:6379"
# network_mode: bridge
# some-rabbit:
# image: rabbitmq:3.8.9-management
# restart: always
# ports:
# - "5672:5672"
# - "15672:15672"
# environment:
# RABBITMQ_DEFAULT_USER: sastoj
# RABBITMQ_DEFAULT_PASS: 123456
# network_mode: bridge
# pg:
# image: postgres:13.1
# restart: always
# ports:
# - "5432:5432"
# environment:
# POSTGRES_USER: sastoj
# POSTGRES_PASSWORD: 123456
# volumes:
# - ./data/pg:/var/lib/postgresql/data
# network_mode: bridge
# go-judge:
# image: criyle/go-judge:v1.8.0
# restart: always
# ports:
# - "5051:5051"
# privileged: true
# shm_size: 512m
# network_mode: bridge
admin:
image: sastoj/admin
build:
context: ./
dockerfile: ./Dockerfile
target: admin
ports:
- "8000:8000"
- "9000:9000"
volumes:
- ./conf/admin/admin:/data/conf
- ./data/cases:/data/cases
external_links:
- redis:rd
- some-rabbit:mq
- oj_pg:pg
network_mode: bridge
contest:
image: sastoj/contest
build:
context: ./
dockerfile: ./Dockerfile
target: contest
ports:
- "8100:8000"
- "9100:9000"
volumes:
- ./conf/user/contest:/data/conf
external_links:
- redis:rd
- some-rabbit:mq
- oj_pg:pg
network_mode: bridge
gojudge:
image: sastoj/gojudge-server
build:
context: ./
dockerfile: ./Dockerfile
target: gojudge-server
volumes:
- ./conf/gojudge:/data/conf
- ./data/cases:/data/cases
external_links:
- redis:rd
- some-rabbit:mq
- oj_pg:pg
network_mode: bridge
privileged: true
deploy:
replicas: 3
freshcup:
image: sastoj/freshcup-server
build:
context: ./
dockerfile: ./Dockerfile
target: freshcup-server
volumes:
- ./conf/freshcup:/data/conf
- ./data/cases:/data/cases
external_links:
- redis:rd
- some-rabbit:mq
- oj_pg:pg
network_mode: bridge
public-auth:
image: sastoj/public-auth
build:
context: ./
dockerfile: ./Dockerfile
target: public-auth
ports:
- "8300:8000"
- "9300:9000"
volumes:
- ./conf/public/auth:/data/conf
external_links:
- redis:rd
- oj_pg:pg
network_mode: bridge