forked from crazy-max/docker-qbittorrent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
79 lines (76 loc) · 2.39 KB
/
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
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
services:
traefik:
image: traefik:2.5
container_name: traefik
command:
- "--global.checknewversion=false"
- "--global.sendanonymoususage=false"
- "--log=true"
- "--log.level=INFO"
- "--entrypoints.http=true"
- "--entrypoints.http.address=:80"
- "--entrypoints.http.http.redirections.entrypoint.to=https"
- "--entrypoints.http.http.redirections.entrypoint.scheme=https"
- "--entrypoints.https=true"
- "--entrypoints.https.address=:443"
- "--certificatesresolvers.letsencrypt"
- "--certificatesresolvers.letsencrypt.acme.storage=acme.json"
- "--certificatesresolvers.letsencrypt.acme.email=webmaster@example.com"
- "--certificatesresolvers.letsencrypt.acme.httpchallenge"
- "--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=http"
- "--providers.docker"
- "--providers.docker.watch=true"
- "--providers.docker.exposedbydefault=false"
ports:
- target: 80
published: 80
protocol: tcp
- target: 443
published: 443
protocol: tcp
volumes:
- "./acme.json:/acme.json"
- "/var/run/docker.sock:/var/run/docker.sock"
restart: always
qbittorrent:
image: crazymax/qbittorrent
container_name: qbittorrent
ports:
- target: 6881
published: 6881
protocol: tcp
- target: 6881
published: 6881
protocol: udp
volumes:
- "qbittorrent-data:/data"
- "qbittorrent-logs:/var/log/qbittorrent"
environment:
- "TZ=Europe/Paris"
- "ALT_WEBUI=false"
labels:
- "traefik.enable=true"
- "traefik.http.routers.qbittorrent.entrypoints=https"
- "traefik.http.routers.qbittorrent.rule=Host(`qbittorrent.example.com`)"
- "traefik.http.routers.qbittorrent.tls=true"
- "traefik.http.routers.qbittorrent.tls.certresolver=letsencrypt"
- "traefik.http.routers.qbittorrent.tls.domains[0].main=qbittorrent.example.com"
- "traefik.http.services.qbittorrent.loadbalancer.server.port=8000"
ulimits:
nproc: 65535
nofile:
soft: 32000
hard: 40000
restart: always
logs:
image: bash
container_name: qbittorrent_logs
command: bash -c 'tail -f /log/*.log'
depends_on:
- qbittorrent
volumes:
- "qbittorrent-logs:/log"
restart: always
volumes:
qbittorrent-data:
qbittorrent-logs: