-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
37 lines (37 loc) · 949 Bytes
/
docker-compose.yaml
File metadata and controls
37 lines (37 loc) · 949 Bytes
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
---
services:
wireguard:
image: azagramac/wireguard:latest
container_name: wireguard
restart: always
deploy:
resources:
limits:
memory: 256M
reservations:
memory: 64M
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Madrid
- SERVERPORT=51820
- PEERS=3
- PEERDNS=1.1.1.1,1.0.0.1
- PERSISTENTKEEPALIVE_PEERS=all
- SERVERURL=YOUR_DOMAIN_DDNS # Change YOUR_DOMAIN_DDNS
- INTERNAL_SUBNET=10.10.1.0/24 # Change IP
- ALLOWEDIPS=192.168.1.0/24 # Change IP
- LOG_CONFS=true
volumes:
- /home/$USER/docker/wireguard:/config:rw
- /lib/modules:/lib/modules:ro
- /etc/hosts:/etc/hosts:ro
ports:
- 51820:51820/udp
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
- net.ipv4.ip_forward=1
- net.ipv4.conf.all.proxy_arp=1
cap_add:
- NET_ADMIN
- SYS_MODULE