-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
97 lines (93 loc) · 3.13 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
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
89
90
91
92
93
94
95
96
97
version: "3.2"
services:
traefik:
image: traefik:2.3
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
geoip-updater:
image: crazymax/geoip-updater:latest
volumes:
- "./data/geoip:/data"
env_file:
- "./geoip-updater.env"
restart: always
rtorrent-rutorrent:
image: crazymax/rtorrent-rutorrent:latest
expose:
- "${RT_DHT_PORT}/udp"
- "${XMLRPC_PORT}"
- "${RUTORRENT_PORT}"
- "${WEBDAV_PORT}"
- "${RT_INC_PORT}"
ports:
- target: ${RT_DHT_PORT}
published: ${RT_DHT_PORT}
protocol: udp
- target: ${RT_INC_PORT}
published: ${RT_INC_PORT}
protocol: tcp
env_file:
- "rtorrent-rutorrent.env"
- ".env"
volumes:
- "./data:/data"
- "./downloads:/downloads"
- "./passwd:/passwd"
labels:
- "traefik.enable=true"
- "traefik.http.routers.rutorrent.entrypoints=https"
- "traefik.http.routers.rutorrent.rule=Host(`rutorrent.example.com`)"
- "traefik.http.routers.rutorrent.tls=true"
- "traefik.http.routers.rutorrent.tls.certresolver=letsencrypt"
- "traefik.http.routers.rutorrent.tls.domains[0].main=rutorrent.example.com"
- "traefik.http.routers.rutorrent.service=rutorrent"
- "traefik.http.services.rutorrent.loadbalancer.server.port=${RUTORRENT_PORT}"
- "traefik.http.routers.webdav.entrypoints=https"
- "traefik.http.routers.webdav.rule=Host(`webdav.example.com`)"
- "traefik.http.routers.webdav.tls=true"
- "traefik.http.routers.webdav.tls.certresolver=letsencrypt"
- "traefik.http.routers.webdav.tls.domains[0].main=webdav.example.com"
- "traefik.http.routers.webdav.service=webdav"
- "traefik.http.services.webdav.loadbalancer.server.port=${WEBDAV_PORT}"
ulimits:
nproc: 65535
nofile:
soft: 32000
hard: 40000
restart: always
rtorrent-logs:
image: bash
command: bash -c 'tail -f /log/*.log'
depends_on:
- rtorrent-rutorrent
volumes:
- "./data/rtorrent/log:/log"
restart: always