-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathvpn-pia.yml
68 lines (62 loc) · 1.75 KB
/
vpn-pia.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
version: "3.7"
services:
# Traefik v2
## PIA - VPN Container
pia:
container_name: pia
image: act28/pia-openvpn-proxy:latest
restart: always
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
dns:
- 209.222.18.218
- 209.222.18.222
networks:
traefik:
ipv4_address: 192.168.50.238
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
environment:
# - REGION=US East
- REGION=CA Toronto
- USERNAME=$PIA_USER
- PASSWORD=$PIA_PASS
- LOCAL_NETWORK=192.168.1.0/24
labels:
- "traefik.enable=true"
## HTTP Routers
- "traefik.http.routers.rutorrent-rtr.entrypoints=https"
- "traefik.http.routers.rutorrent-rtr.rule=Host(`rutorrent.$DOMAINNAME`)"
- "traefik.http.routers.rutorrent-rtr.tls=true"
- "traefik.http.routers.rutorrent-rtr.tls.certresolver=dns-cloudflare"
## Middlewares
- "traefik.http.routers.rutorrent-rtr.middlewares=secure-chain@file"
## HTTP Services
- "traefik.http.routers.rutorrent-rtr.service=rutorrent-svc"
- "traefik.http.services.rutorrent-svc.loadbalancer.server.port=80"
## RuTorrent
## This needs to be it's own file to connect to container:pia
# rutorrent:
# container_name: rutorrent
# image: linuxserver/rutorrent:latest
# restart: always
# network_mode: "container:pia"
## ports:
## - "80:80"
## - "5000:5000"
## - "51413:51413"
## - "6881:6881/udp"
# volumes:
# - $USERDIR/docker/rutorrent:/config
# - $USERDIR/dwnloads:/downloads
# - /etc/timezone:/etc/timezone:ro
# - /etc/localtime:/etc/localtime:ro
# environment:
# - PUID=$PUID
# - PGID=$PGID
networks:
traefik:
external: true