This repository has been archived by the owner on Nov 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
88 lines (81 loc) · 1.88 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
version: '3'
services:
web:
restart: always
image: 127.0.0.1:5000/shake-web
build: ./repos/Armory
environment:
- DB=${DB_CONFIG}
- SECRET=thisissecretforproduction
- SUPER_ADMIN_TOKEN=${SUPER_ADMIN_TOKEN}
- PORT=7000
- DEFAULT_CONTEST=${DEFAULT_CONTEST}
- MONGO=mongodb://mongo/armory-production
ports:
- 7000:7000
volumes:
- ./problems/data:/root/app/Armory/data
rank1:
restart: always
image: 127.0.0.1:5000/shake-rank
build: ./repos/Barracks
environment:
- DB=${DB_GO_CONFIG}
- PORT=7001
- CONTEST=shake2018_final_ot
- PUSHHOST=http://web:7000
ports:
- 7001:7001
# rank2:
# restart: always
# image: 127.0.0.1:5000/shake-rank
# build: ./repos/Barracks
# environment:
# - DB=${DB_GO_CONFIG}
# - PORT=7001
# - CONTEST=apc_div2
# - PUSHHOST=http://web:7000
# ports:
# - 7002:7001
# rank3:
# restart: always
# image: 127.0.0.1:5000/shake-rank
# build: ./repos/Barracks
# environment:
# - DB=${DB_GO_CONFIG}
# - PORT=7001
# - CONTEST=shake_skku
# - PUSHHOST=http://web:7000
# ports:
# - 7003:7001
# rank4:
# restart: always
# image: 127.0.0.1:5000/shake-rank
# build: ./repos/Barracks
# environment:
# - DB=${DB_GO_CONFIG}
# - PORT=7001
# - CONTEST=shake_krar
# - PUSHHOST=http://web:7000
# ports:
# - 7004:7001
mongo:
restart: always
image: mongo
ports:
- 27017:27017
volumes:
- ./mongo/datadir:/data/db
# dashboard:
# image: charypar/swarm-dashboard
# volumes:
# - "/var/run/docker.sock:/var/run/docker.sock"
# ports:
# - 8080:8080
# environment:
# PORT: 8080
# deploy:
# replicas: 1
# placement:
# constraints:
# - node.role == manager