-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
65 lines (65 loc) · 1.51 KB
/
compose.yml
File metadata and controls
65 lines (65 loc) · 1.51 KB
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
services:
saloonbot-server:
build:
context: .
dockerfile: Dockerfile.server
args:
GIT_SHA: ${GIT_SHA}
image: ghcr.io/markrcote/saloonbot-server:main
restart: always
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- MYSQL_HOST=mysql
- MYSQL_PORT=3306
- MYSQL_USER=saloonbot
- MYSQL_PASSWORD=saloonbot_password
- MYSQL_DATABASE=saloonbot
- SALOONBOT_DEBUG=${SALOONBOT_DEBUG}
depends_on:
- redis
- mysql
saloonbot-bot:
build:
context: .
dockerfile: Dockerfile.bot
args:
GIT_SHA: ${GIT_SHA}
SALOONBOT_DEBUG: ${SALOONBOT_DEBUG}
image: ghcr.io/markrcote/saloonbot-bot:main
restart: always
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- DISCORD_TOKEN_FILE=/run/secrets/discord_token
- DISCORD_GUILDS_FILE=/run/secrets/discord_guilds
- SALOONBOT_DEBUG=${SALOONBOT_DEBUG}
secrets:
- discord_token
- discord_guilds
depends_on:
- redis
redis:
image: redis:alpine
restart: always
ports:
- "6379:6379"
mysql:
image: mysql:8.0
restart: always
environment:
- MYSQL_ROOT_PASSWORD=root_password
- MYSQL_DATABASE=saloonbot
- MYSQL_USER=saloonbot
- MYSQL_PASSWORD=saloonbot_password
volumes:
- mysql_data:/var/lib/mysql
ports:
- "3306:3306"
volumes:
mysql_data:
secrets:
discord_token:
file: discord_token.txt
discord_guilds:
file: discord_guilds.txt