-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev-server-local.yml
More file actions
45 lines (45 loc) · 1.02 KB
/
compose.dev-server-local.yml
File metadata and controls
45 lines (45 loc) · 1.02 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
services:
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