-
Notifications
You must be signed in to change notification settings - Fork 134
/
docker-compose.yml
92 lines (87 loc) · 2.64 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
services:
## shared services
mysql:
image: mysql:latest
# ports:
# - ${DB_PORT}:${DB_PORT}
environment:
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASS}
MYSQL_DATABASE: ${DB_NAME}
MYSQL_HOST: ${DB_HOST}
MYSQL_PORT: ${DB_PORT}
MYSQL_RANDOM_ROOT_PASSWORD: "true"
volumes:
- ./migrations/base.sql:/docker-entrypoint-initdb.d/init.sql:ro
- db-data:/var/lib/mysql
healthcheck:
test: "/usr/bin/mysql --user=$$MYSQL_USER --password=$$MYSQL_PASSWORD --execute \"SHOW DATABASES;\""
interval: 2s
timeout: 20s
retries: 10
redis:
image: bitnami/redis:latest
# ports:
# - ${REDIS_PORT}:${REDIS_PORT}
user: root
volumes:
- redis-data:/bitnami/redis/data
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_PASSWORD=${REDIS_PASS}
## application services
bancho:
# we also have a public image: osuakatsuki/bancho.py:latest
image: bancho:latest
ports:
- ${APP_PORT}:${APP_PORT}
depends_on:
mysql:
condition: service_healthy
redis:
condition: service_started
tty: true
init: true
volumes:
- .:/srv/root
- data:/srv/root/.data
environment:
- APP_HOST=${APP_HOST}
- APP_PORT=${APP_PORT}
- DB_USER=${DB_USER}
- DB_PASS=${DB_PASS}
- DB_NAME=${DB_NAME}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- REDIS_USER=${REDIS_USER}
- REDIS_PASS=${REDIS_PASS}
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- REDIS_DB=${REDIS_DB}
- OSU_API_KEY=${OSU_API_KEY}
- MIRROR_SEARCH_ENDPOINT=${MIRROR_SEARCH_ENDPOINT}
- MIRROR_DOWNLOAD_ENDPOINT=${MIRROR_DOWNLOAD_ENDPOINT}
- DOMAIN=${DOMAIN}
- COMMAND_PREFIX=${COMMAND_PREFIX}
- SEASONAL_BGS=${SEASONAL_BGS}
- MENU_ICON_URL=${MENU_ICON_URL}
- MENU_ONCLICK_URL=${MENU_ONCLICK_URL}
- DATADOG_API_KEY=${DATADOG_API_KEY}
- DATADOG_APP_KEY=${DATADOG_APP_KEY}
- DEBUG=${DEBUG}
- REDIRECT_OSU_URLS=${REDIRECT_OSU_URLS}
- PP_CACHED_ACCS=${PP_CACHED_ACCS}
- DISALLOWED_NAMES=${DISALLOWED_NAMES}
- DISALLOWED_PASSWORDS=${DISALLOWED_PASSWORDS}
- DISALLOW_OLD_CLIENTS=${DISALLOW_OLD_CLIENTS}
- DISALLOW_INGAME_REGISTRATION=${DISALLOW_INGAME_REGISTRATION}
- DISCORD_AUDIT_LOG_WEBHOOK=${DISCORD_AUDIT_LOG_WEBHOOK}
- AUTOMATICALLY_REPORT_PROBLEMS=${AUTOMATICALLY_REPORT_PROBLEMS}
- LOG_WITH_COLORS=${LOG_WITH_COLORS}
- SSL_CERT_PATH=${SSL_CERT_PATH}
- SSL_KEY_PATH=${SSL_KEY_PATH}
- DEVELOPER_MODE=${DEVELOPER_MODE}
volumes:
data:
db-data:
redis-data: