-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
49 lines (45 loc) · 1.08 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
version: '3.4'
x-mariadb-variables: &mariadb-variables
MYSQL_DATABASE: "USER_DB_NAME"
MYSQL_USER: "MYSQL_USER"
MYSQL_PASSWORD: "DATABASE_PASSWORD"
PUID: 1000
PGID: 1000
services:
download-mover:
container_name: DiscordBot
build: .
restart: no
volumes:
- ./appdata/discordBot:/hm-discord-bot/appdata
environment:
<<: *mariadb-variables
MYSQL_PORT: 3306
MYSQL_HOST: "mariadb"
REDIS_PORT: 6379
REDIS_HOST: "redis"
BOT_TOKEN: "discord-bot-token"
depends_on:
- mariadb
- redis
mariadb:
container_name: mariadb
image: lscr.io/linuxserver/mariadb:latest
restart: unless-stopped
volumes:
- ./appdata/mariadb:/config
environment:
<<: *mariadb-variables
TZ: "Europe/Berlin"
MYSQL_ROOT_PASSWORD: ROOT_ACCESS_PASSWORD
ports:
- "3306:3306"
redis:
container_name: redis
image: redis:latest
restart: unless-stopped
volumes:
- ./appdata/redis:/data
ports:
- "6379:6379"
command: redis-server --save 20 1 --loglevel warning