-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (62 loc) · 1.59 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
version: "3.7"
services:
torrent-client:
image: linuxserver/deluge
restart: unless-stopped
network_mode: service:vpn-sidecar
depends_on:
- vpn-sidecar
volumes:
- deluge-data-volume:/config
- downloads-volume:/downloads
web-proxy:
image: dperson/nginx
restart: unless-stopped
networks:
- default
- isolated_torrent_network
environment:
- PROXY=http://torrent-client:8112;/
ports:
- 8112:80
links:
- vpn-sidecar:torrent-client
depends_on:
- torrent-client
read_only: true
tmpfs:
- /run
- /tmp
- /var/cache/nginx
vpn-sidecar:
image: linuxserver/wireguard
restart: unless-stopped
networks:
- isolated_torrent_network
cap_add:
- NET_ADMIN
- SYS_MODULE
volumes:
- /lib/modules:/lib/modules
- wgclient-data-volume:/config
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
- net.ipv6.conf.all.disable_ipv6=0 # for raspberry pi compatibility?
volumes:
deluge-data-volume: # deluge application files - change to a persistent location
driver_opts:
type: tmpfs
device: tmpfs
downloads-volume: # (optional) file download location - change to a persistent location
driver_opts:
type: tmpfs
device: tmpfs
wgclient-data-volume: # (required) writeable location of wg0.conf
driver: local
driver_opts:
o: bind
type: none
device: "$PWD/wireguard/" # create this folder & drop in wireguard client config named "wg0.conf"
networks:
default:
isolated_torrent_network: