-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
48 lines (45 loc) · 1002 Bytes
/
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
services:
tor:
build: .
volumes:
- ./tor:/etc/tor
- ./onion:/var/lib/tor/onion
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
cap_add:
- NET_BIND_SERVICE
depends_on:
- caddy
network_mode: "service:gluetun"
restart: unless-stopped
caddy:
image: caddy:latest
volumes:
- ./www:/var/www
- ./Caddyfile:/etc/caddy/Caddyfile
networks:
tor_network:
ipv4_address: 172.18.0.22
restart: unless-stopped
gluetun:
image: qmcgaw/gluetun
cap_add:
- NET_ADMIN
environment:
# https://github.com/qdm12/gluetun-wiki/tree/main/setup/providers
- VPN_SERVICE_PROVIDER=${VPN_SERVICE_PROVIDER}
- OPENVPN_USER=${OPENVPN_USER}
- OPENVPN_PASSWORD=${OPENVPN_PASSWORD}
devices:
- /dev/net/tun:/dev/net/tun
networks:
- tor_network
restart: unless-stopped
networks:
tor_network:
driver: bridge
ipam:
config:
- subnet: 172.18.0.0/16