forked from lardbit/nefarious
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.transmission-vpn.yml
83 lines (75 loc) · 2.24 KB
/
docker-compose.transmission-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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#####################################################
# DO NOT EDIT THIS FILE
#
# Create an .env file instead.
# See https://github.com/lardbit/nefarious#part-1
#####################################################
version: '2.4'
services:
nefarious:
extends:
file: docker-compose.base.yml
service: nefarious-app-base
celery:
extends:
file: docker-compose.base.yml
service: celery-base
redis:
extends:
file: docker-compose.yml
service: redis
# torrent server
transmission:
extends:
service: transmission-base
file: docker-compose.base.yml
image: haugene/transmission-openvpn:latest
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
ports:
- "9091:9091"
- "9117:9117" # jackett which shares this vpn network
- "51413:51413" # peer port
dns: # bypass any dns issues by not using ISP's DNS
- 1.1.1.1 # cloudflare dns primary
- 1.0.0.1 # cloudflare dns secondary
volumes:
- ${HOST_DOWNLOAD_PATH:-/tmp}:/data
- /etc/localtime:/etc/localtime:ro
sysctls:
- net.ipv6.conf.all.disable_ipv6=${VPN_IPV6_DISABLED:-1} # 0=ipv6 enabled, 1=ipv6 disabled
environment:
- OPENVPN_PROVIDER=${OPENVPN_PROVIDER}
- OPENVPN_USERNAME=${OPENVPN_USERNAME}
- OPENVPN_PASSWORD=${OPENVPN_PASSWORD}
- OPENVPN_CONFIG=${OPENVPN_CONFIG}
- OPENVPN_OPTS=--inactive 3600 --ping 10 --ping-exit 60 --pull-filter ignore ping
- LOCAL_NETWORK=${LOCAL_NETWORK:-192.168.1.0/24},172.17.0.0/16
- GLOBAL_APPLY_PERMISSIONS=true
- CREATE_TUN_DEVICE=true
- PUID=${HOST_DOWNLOAD_UID:-1000}
- PGID=${HOST_DOWNLOAD_GID:-1000}
# additional options may need to be specified based on your VPN provider
logging:
driver: json-file
options:
max-size: 10m
# torrent indexer service which gets routed through the transmission vpn
jackett:
extends:
file: docker-compose.base.yml
service: jackett-base
network_mode: service:transmission # use transmission/vpn network
depends_on:
- transmission
watchtower:
extends:
file: docker-compose.yml
service: watchtower
volumes:
nefarious-db:
driver: local
jackett-config:
driver: local