-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (70 loc) · 1.49 KB
/
docker-compose.yml
File metadata and controls
77 lines (70 loc) · 1.49 KB
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
services:
# ProtonVPN tunnel
protonvpn:
image: genericmale/protonvpn
restart: unless-stopped
environment:
- OPENVPN_USER_PASS_FILE=/run/secrets/protonvpn
- VPN_RECONNECT=2:00
- OPENVPN_USER=root
- OPENVPN_PASS=kittenity
- CONNECT_TIMEOUT=999
- VPN_KILL_SWITCH=1
- PROTON_TIER=0
- VPN_SERVER_COUNT=10
devices:
- /dev/net/tun
cap_add:
- NET_ADMIN
secrets:
- protonvpn
volumes:
- /etc/localtime:/etc/localtime:ro
# Final out-proxy through ProtonVPN
privoxy_out:
image: vimagick/privoxy
restart: unless-stopped
network_mode: service:protonvpn
depends_on:
protonvpn:
condition: service_started
# Replicated Tor nodes
tor:
image: dperson/torproxy
deploy:
mode: replicated
replicas: 3
networks:
- proxy_net
# Replicated Privoxy for Tor → Privoxy routing
privoxy:
image: lusky3/privoxy:latest
deploy:
mode: replicated
replicas: 3
networks:
- proxy_net
depends_on:
- tor
volumes:
- ./privoxy/config:/etc/privoxy/config
# NGINX for load balancing the replicated Privoxy
nginx:
image: nginx:alpine
restart: always
ports:
- "8888:8888"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- privoxy
networks:
- proxy_net
secrets:
protonvpn:
file: ./secrets/protonvpn
volumes:
tor-data:
networks:
proxy_net:
driver: bridge