-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathdocker-compose.wireguard.yml
52 lines (52 loc) · 1.25 KB
/
docker-compose.wireguard.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
services:
antizapret-vpn:
extends:
file: docker-compose.yml
service: antizapret-vpn
wg-easy:
environment:
- WG_ALLOWED_IPS=
10.224.0.0/15,
10.1.166.0/24,
103.246.200.0/22,
178.239.88.0/21,
185.104.45.0/24,
193.105.213.36/30,
203.104.128.0/20,
203.104.144.0/21,
203.104.152.0/22,
68.171.224.0/19,
74.82.64.0/19,
104.109.143.0/24,
66.22.192.0/18,
35.192.0.0/11,
34.0.192.0/18
- WG_DEFAULT_DNS=10.224.0.1
- WG_PERSISTENT_KEEPALIVE=25
- WG_PORT=443
- WG_DEFAULT_ADDRESS=10.1.166.x
image: ghcr.io/wg-easy/wg-easy
container_name: wg-easy
volumes:
- ./.etc_wireguard:/etc/wireguard
- ./wireguard/entrypoint.sh:/entrypoint.sh
command: /entrypoint.sh
ports:
- "443:443/udp"
- "51821:51821/tcp"
restart: unless-stopped
env_file:
- ./wireguard/wireguard.env
cap_add:
- NET_ADMIN
- SYS_MODULE
depends_on:
- antizapret-vpn
sysctls:
- net.ipv4.ip_forward=1
- net.ipv4.conf.all.src_valid_mark=1
logging:
driver: "json-file"
options:
max-size: "100k"
max-file: "2"