-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
240 lines (240 loc) · 5.35 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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
# Copy this file to the parent folder and clone the coresponding folders with "git clone https://github.com/Coflnet/_______.git"
# also make sure to rename this folder to "dev" (historical name)
version: '3.7'
services:
mariadb:
image: 'docker.io/bitnami/mariadb:10.11-debian-11'
volumes:
- 'skyblockdb_data:/bitnami/mariadb'
ports:
- '3306:3306'
environment:
- MARIADB_ROOT_PASSWORD=takenfrombitnami
- MARIADB_EXTRA_FLAGS=--innodb-buffer-pool-size=500M --key-buffer-size=1G --connect-timeout=101
phpmyadmin:
image: 'docker.io/bitnami/phpmyadmin:5-debian-10'
ports:
- '8038:8080'
- '4438:8443'
depends_on:
- mariadb
indexer:
build: SkyIndexer
ports:
- '8007:8008'
restart: always
depends_on:
- mariadb
- kafka
- redis
- items
environment:
FRONTEND_PROD: "frontend"
JAEGER_SERVICE_NAME: "hypixel-skyblock-core"
JAEGER_AGENT_HOST: "jaeger"
KAFKA_HOST: "kafka:9092"
SKYCOMMANDS_HOST: "commands:8008"
api:
build: SkyApi
restart: always
ports:
- '1234:8000'
environment:
ITEMS_BASE_URL: http://items:8000
DBCONNECTION: server=mariadb;database=test;user=root;password=takenfrombitnami; convert zero datetime=True;Charset=utf8; Connect Timeout=30
commands:
build: SkyCommands
environment:
- JAEGER_AGENT_HOST=jaeger
- KAFKA_HOST=kafka:9092
ports:
- "8008:8008"
restart: always
depends_on:
- mariadb
- kafka
- redis
- frontend
redis:
image: "redis:alpine"
environment:
- REDIS_REPLICATION_MODE=master
ports:
- "6379:6379"
imgproxy:
image: darthsim/imgproxy
environment:
- IMGPROXY_ALLOWED_SOURCES=https://sky.shiiyu.moe/,https://skycrypt.coflnet.com,https://mc-heads.net/,https://crafatar.com/,https://static.coflnet.com/
- IMGPROXY_BIND=:80
- IMGPROXY_MAX_ANIMATION_FRAMES=100
ports:
- 8234:80
frontend:
build: hypixel-react
ports:
- "3000:3000"
jaeger:
image: "jaegertracing/all-in-one:1.35"
ports:
- "16686:16686"
- "14268:14268"
- "14250:14250"
- "5775:5775"
- "6831:6831"
- "6832:6832"
- "5778:5778"
- "14269:14269"
- "9411:9411"
environment:
- COLLECTOR_ZIPKIN_HOST_PORT=:9411
zookeeper:
image: docker.io/bitnami/zookeeper:3.7
ports:
- "2181:2181"
volumes:
- "zookeeper_data:/bitnami"
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
kafka:
image: docker.io/bitnami/kafka:2
ports:
- "9092:9092"
volumes:
- "kafka_data:/bitnami"
environment:
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
depends_on:
- zookeeper
deploy:
resources:
limits:
cpus: '0.5'
memory: 1500M
mcconnect:
build: SkyMcConnect
modcommands:
build: SkyModCommands
environment:
- JAEGER_AGENT_HOST=jaeger
- KAFKA_HOST=kafka:9092
- DBConnection=server=mariadb;database=test;user=read;password=read; convert zero datetime=True;Charset=utf8; Connect Timeout=30; SslMode=none
- CASSANDRA__HOSTS=scylla
ports:
- "8009:8008"
restart: always
depends_on:
- commands
- mcconnect
- fliptracker
- kafka
- items
- scylla
items:
build: SkyItems
restart: always
ports:
- '5014:8000'
fliptracker:
build: SkyFlipTracker
restart: always
environment:
- CASSANDRA__HOSTS=scylla
ports:
- "5017:8000"
depends_on:
- scylla
- kafka
- crafts
crafts:
build: SkyCrafts
profile:
build: SkyPlayerInfo
ports:
- "8087:8000"
sniper:
build: SkySniper
restart: always
ports:
- "8086:8000"
depends_on:
- minio
subscription:
build: SkySubscriptions
updater:
build: SkyUpdater
depends_on:
- jaeger
environment:
SLOWDOWN_MS: 800
flipper:
build: SkyFlipper
environment:
- ITEMS_BASE_URL=http://items:8000
payment:
build: Payments
depends_on:
- mariadb
ports:
- "8089:80"
settings:
build: SkySettings
restart: always
depends_on:
- scylla
ports:
- '5004:8000'
environment:
- CASSANDRA__HOSTS=scylla
bazaar:
build: SkyBazaar
restart: always
ports:
- '5011:8000'
environment:
CASSANDRA__HOSTS: scylla
scylla:
image: scylladb/scylla
container_name: some-scylla
volumes:
- 'scylla_data:/var/lib/scylla'
ports:
- '7000:7000'
- '9042:9042'
command: --smp 1
mongo:
image: bitnami/mongodb
environment:
- MONGODB_USERNAME=my_user
- MONGODB_PASSWORD=password123
- MONGODB_ROOT_PASSWORD=password123
- MONGODB_DATABASE=my_database
volumes:
- 'mongodb_data:/bitnami'
ports:
- '27017:27017'
minio:
image: minio/minio
command: server --console-address ":9001" /data
depends_on:
- "kafka"
expose:
- 9000
- 9001
ports:
- '9000:9000'
- '9001:9001'
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
volumes:
zookeeper_data:
driver: local
kafka_data:
driver: local
skyblockdb_data:
driver: local
mongodb_data:
driver: local
scylla_data:
driver: local