-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathcompose.qbittorrent-e2e.mysql.yaml
More file actions
88 lines (84 loc) · 2.87 KB
/
compose.qbittorrent-e2e.mysql.yaml
File metadata and controls
88 lines (84 loc) · 2.87 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: qbittorrent-e2e
services:
tracker:
build:
context: .
dockerfile: Containerfile
target: release
image: ${QBT_E2E_TRACKER_IMAGE:?QBT_E2E_TRACKER_IMAGE is required}
restart: "no"
environment:
TORRUST_TRACKER_CONFIG_OVERRIDE_CORE__DATABASE__DRIVER: mysql
depends_on:
mysql:
condition: service_healthy
volumes:
- type: bind
source: ${QBT_E2E_TRACKER_CONFIG_PATH:?QBT_E2E_TRACKER_CONFIG_PATH is required}
target: /etc/torrust/tracker/tracker.toml
read_only: true
- type: bind
source: ${QBT_E2E_TRACKER_STORAGE_PATH:?QBT_E2E_TRACKER_STORAGE_PATH is required}
target: /var/lib/torrust/tracker
ports:
- "0:${QBT_E2E_TRACKER_HTTP_TRACKER_PORT:?QBT_E2E_TRACKER_HTTP_TRACKER_PORT is required}"
- "0:${QBT_E2E_TRACKER_UDP_PORT:?QBT_E2E_TRACKER_UDP_PORT is required}/udp"
- "0:${QBT_E2E_TRACKER_HTTP_API_PORT:?QBT_E2E_TRACKER_HTTP_API_PORT is required}"
- "0:${QBT_E2E_TRACKER_HEALTH_CHECK_API_PORT:?QBT_E2E_TRACKER_HEALTH_CHECK_API_PORT is required}"
mysql:
image: mysql:8.0
command: "--default-authentication-plugin=mysql_native_password"
restart: "no"
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h 127.0.0.1 -uroot -proot_secret_password --silent"]
interval: 3s
retries: 20
start_period: 20s
environment:
MYSQL_ROOT_HOST: "%"
MYSQL_ROOT_PASSWORD: root_secret_password
MYSQL_DATABASE: torrust_tracker
MYSQL_USER: db_user
MYSQL_PASSWORD: db_user_secret_password
qbittorrent-seeder:
image: ${QBT_E2E_QBITTORRENT_IMAGE:?QBT_E2E_QBITTORRENT_IMAGE is required}
restart: "no"
environment:
WEBUI_PORT: "8080"
PUID: "1000"
PGID: "1000"
TZ: "UTC"
QBT_LEGAL_NOTICE: "confirm"
volumes:
- type: bind
source: ${QBT_E2E_SEEDER_CONFIG_PATH:?QBT_E2E_SEEDER_CONFIG_PATH is required}
target: /config
- type: bind
source: ${QBT_E2E_SEEDER_DOWNLOADS_PATH:?QBT_E2E_SEEDER_DOWNLOADS_PATH is required}
target: /downloads
- type: bind
source: ${QBT_E2E_SHARED_PATH:?QBT_E2E_SHARED_PATH is required}
target: /shared
ports:
- "0:8080"
qbittorrent-leecher:
image: ${QBT_E2E_QBITTORRENT_IMAGE:?QBT_E2E_QBITTORRENT_IMAGE is required}
restart: "no"
environment:
WEBUI_PORT: "8080"
PUID: "1000"
PGID: "1000"
TZ: "UTC"
QBT_LEGAL_NOTICE: "confirm"
volumes:
- type: bind
source: ${QBT_E2E_LEECHER_CONFIG_PATH:?QBT_E2E_LEECHER_CONFIG_PATH is required}
target: /config
- type: bind
source: ${QBT_E2E_LEECHER_DOWNLOADS_PATH:?QBT_E2E_LEECHER_DOWNLOADS_PATH is required}
target: /downloads
- type: bind
source: ${QBT_E2E_SHARED_PATH:?QBT_E2E_SHARED_PATH is required}
target: /shared
ports:
- "0:8080"