-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
150 lines (150 loc) · 3.38 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
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
version: "3.7"
volumes:
kagstats-data:
services:
mysql:
build:
context: .
dockerfile: Dockerfile-mysql
image: gcr.io/kagstats/mysql:${TAG:-latest}
volumes:
- kagstats-data:/var/lib/mysql
ports:
- "${MYSQL_PORT:-3306}:3306"
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=kagstats
command: ["mysqld", "--innodb_autoinc_lock_mode=0"]
restart: always
collector:
build:
context: .
dockerfile: Dockerfile-collector
args:
VERSION: ${TAG:-latest}
image: gcr.io/kagstats/collector:${TAG:-latest}
links:
- mysql
restart: always
volumes:
- ${SETTINGS:-./settings.json}:/settings.json
api:
build:
context: .
dockerfile: Dockerfile-api
args:
VERSION: ${TAG:-latest}
image: gcr.io/kagstats/api:${TAG:-latest}
environment:
- KD_GATE=25
- ARCHER_GATE=15
- BUILDER_GATE=5
- KNIGHT_GATE=25
- AUTH_SECRET=${AUTH_SECRET:-secret}
links:
- mysql
hostname: api
restart: always
admin:
build:
context: .
dockerfile: Dockerfile-admin
args:
VERSION: ${TAG:-latest}
image: gcr.io/kagstats/admin:${TAG:-latest}
environment:
- USER=${ADMIN_USER:-admin}
- PASS=${ADMIN_PASS:-admin1234!}
links:
- mysql
hostname: admin
restart: always
basic-indexer:
build:
context: .
dockerfile: Dockerfile-indexer
args:
indexer: basic
VERSION: ${TAG:-latest}
image: gcr.io/kagstats/basic-indexer:${TAG:-latest}
links:
- mysql
restart: always
nemesis-indexer:
build:
context: .
dockerfile: Dockerfile-indexer
args:
indexer: nemesis
VERSION: ${TAG:-latest}
image: gcr.io/kagstats/nemesis-indexer:${TAG:-latest}
links:
- mysql
restart: always
hitters-indexer:
build:
context: .
dockerfile: Dockerfile-indexer
args:
indexer: hitters
VERSION: ${TAG:-latest}
image: gcr.io/kagstats/hitters-indexer:${TAG:-latest}
links:
- mysql
restart: always
monthly-hitters-indexer:
build:
context: .
dockerfile: Dockerfile-indexer
args:
indexer: monthly_hitters
VERSION: ${TAG:-latest}
image: gcr.io/kagstats/monthly-hitters-indexer:${TAG:-latest}
links:
- mysql
restart: always
monthly-indexer:
build:
context: .
dockerfile: Dockerfile-indexer
args:
indexer: monthly
VERSION: ${TAG:-latest}
image: gcr.io/kagstats/monthly-indexer:${TAG:-latest}
links:
- mysql
restart: always
mapvotes-indexer:
build:
context: .
dockerfile: Dockerfile-indexer
args:
indexer: mapvotes
VERSION: ${TAG:-latest}
image: gcr.io/kagstats/mapvotes-indexer:${TAG:-latest}
links:
- mysql
restart: always
accolades:
build:
context: .
dockerfile: Dockerfile-indexer
args:
indexer: accolades
VERSION: ${TAG:-latest}
image: gcr.io/kagstats/accolades:${TAG:-latest}
links:
- mysql
restart: always
ui:
build:
context: .
dockerfile: Dockerfile-ui
args:
VERSION: ${TAG:-latest}
image: gcr.io/kagstats/ui:${TAG:-latest}
ports:
- "${WEB_PORT:-80}:80"
links:
- api
restart: always