-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
56 lines (51 loc) · 1.1 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
version: "3.7"
services:
squid:
image: ubuntu/squid
restart: unless-stopped
network_mode: service:vpn-sidecar
depends_on:
- vpn-sidecar
web-proxy:
image: dperson/nginx
restart: unless-stopped
environment:
- STREAM=69;squid:3128
ports:
- 3128:69/tcp
links:
- vpn-sidecar:squid
depends_on:
- squid
read_only: true
tmpfs:
- /run
- /tmp
- /var/cache/nginx
networks:
- default
- isolated_vpn_network
vpn-sidecar:
image: lscr.io/linuxserver/wireguard
restart: unless-stopped
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?
networks:
- isolated_vpn_network
volumes:
wgclient-data-volume: # writeable location of wg0.conf
driver: local
driver_opts:
o: bind
type: none
device: "$PWD/wireguard/"
networks:
default:
isolated_vpn_network: