-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
43 lines (41 loc) · 997 Bytes
/
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
jukebot:
image: theconnman/jukebot:latest
container_name: jukebot
ports:
- "8000:1337"
labels:
- "traefik.backend=jukebot"
- "traefik.frontend.rule=Host:jukebot.localhost"
environment:
- SERVER_URL=http://jukebot.localhost
- MYSQL_HOST=mysql
env_file: .env
links:
- mysql
restart: always
traefik:
image: traefik
command: --web --docker --docker.domain=localhost --logLevel=DEBUG
ports:
- "80:80"
- "8080:8080"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /path/to/jukebot/traefik.toml:/traefik.toml
- /path/to/jukebot/acme.json:/acme.json
restart: always
mysql:
image: mysql
container_name: mysql
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
ports:
- "3306:3306"
volumes:
- /data/mysql:/var/lib/mysql
environment:
- MYSQL_USER=sails
- MYSQL_PASSWORD=sails
- MYSQL_DATABASE=sails
- MYSQL_RANDOM_ROOT_PASSWORD=yes
restart: always