-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.torrents-on-vpn.yml
60 lines (58 loc) · 1.65 KB
/
docker-compose.torrents-on-vpn.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
version: "3.3"
services:
vpn:
image: dperson/openvpn-client
container_name: vpn
cap_add:
- net_admin
environment:
- DNS=${VPN_DNS}
- TZ=${TIMEZONE}
networks:
default:
ipv4_address: 172.20.50.2
read_only: false
tmpfs:
- /run
- /tmp
restart: unless-stopped
security_opt:
- label:disable
stdin_open: true
tty: true
volumes:
- /dev/net:/dev/net:z
- ${CONTAINERS}/openvpn:/vpn
labels:
- com.centurylinklabs.watchtower.enable=true
- traefik.enable=true
#
# Exposed containers
# See more @ https://community.containo.us/t/docker-compose-with-network-mode-service-service-name/3395
#
- traefik.http.routers.deluge.entrypoints=websecured
- traefik.http.routers.deluge.tls.certresolver=myresolver
- traefik.http.routers.deluge.rule=Host(`deluge.${DOMAIN}`)
ports:
- 8112:8112 # Deluge
deluge:
image: linuxserver/deluge
container_name: deluge
network_mode: service:vpn
depends_on:
- vpn
labels:
- com.centurylinklabs.watchtower.enable=true
- traefik.enable=true
- traefik.http.routers.deluge.rule=Host(`deluge.${DOMAIN}`)
- traefik.http.routers.deluge.entrypoints=websecured
- traefik.http.routers.deluge.tls.certresolver=myresolver
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TIMEZONE}
volumes:
- ${CONTAINERS}/deluge/config:/config
- ${DOWNLOADS}/torrents:/downloads
- ./themes/deluge/${DELUGE_THEME}.css:/usr/lib/python3/dist-packages/deluge/ui/web/themes/css/xtheme-gray.css
restart: unless-stopped