forked from torrust/torrust-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
51 lines (48 loc) · 1.36 KB
/
compose.yaml
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
name: torrust
services:
tracker:
image: torrust-tracker:release
tty: true
environment:
- TORRUST_TRACKER_CONFIG_OVERRIDE_CORE__DATABASE__DRIVER=${TORRUST_TRACKER_CONFIG_OVERRIDE_CORE__DATABASE__DRIVER:-mysql}
- TORRUST_TRACKER_CONFIG_OVERRIDE_HTTP_API__ACCESS_TOKENS__ADMIN=${TORRUST_TRACKER_CONFIG_OVERRIDE_HTTP_API__ACCESS_TOKENS__ADMIN:-MyAccessToken}
networks:
- server_side
ports:
- 6969:6969/udp
- 7070:7070
- 1212:1212
volumes:
- ./storage/tracker/lib:/var/lib/torrust/tracker:Z
- ./storage/tracker/log:/var/log/torrust/tracker:Z
- ./storage/tracker/etc:/etc/torrust/tracker:Z
depends_on:
- mysql
mysql:
image: mysql:8.0
command: "--default-authentication-plugin=mysql_native_password"
healthcheck:
test:
[
"CMD-SHELL",
'mysqladmin ping -h 127.0.0.1 --password="$$(cat /run/secrets/db-password)" --silent',
]
interval: 3s
retries: 5
start_period: 30s
environment:
- MYSQL_ROOT_HOST=%
- MYSQL_ROOT_PASSWORD=root_secret_password
- MYSQL_DATABASE=torrust_tracker
- MYSQL_USER=db_user
- MYSQL_PASSWORD=db_user_secret_password
networks:
- server_side
ports:
- 3306:3306
volumes:
- mysql_data:/var/lib/mysql
networks:
server_side: {}
volumes:
mysql_data: {}