Skip to content

Commit 7888843

Browse files
authored
Merge pull request SensorsIot#701 from Paraphraser/20230516-wireguard-old-menu
2023-05-16 Wireguard conformance - old-menu branch - PR 2 of 2
2 parents 695146b + 2d9cec4 commit 7888843

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

.templates/wireguard/service.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,21 @@
33
image: ghcr.io/linuxserver/wireguard
44
restart: unless-stopped
55
environment:
6-
- PUID=1000
7-
- PGID=1000
8-
- TZ=Etc/UTC
9-
- SERVERURL=your.dynamic.dns.name
10-
- SERVERPORT=51820
11-
- PEERS=laptop,phone,tablet
12-
- PEERDNS=auto
13-
- ALLOWEDIPS=0.0.0.0/0
6+
- PUID=1000
7+
- PGID=1000
8+
- TZ=${TZ:-Etc/UTC}
9+
- SERVERURL=your.dynamic.dns.name
10+
- SERVERPORT=51820
11+
- PEERS=laptop,phone,tablet
12+
- PEERDNS=auto
13+
- ALLOWEDIPS=0.0.0.0/0
1414
ports:
15-
- "51820:51820/udp"
15+
- "51820:51820/udp"
1616
volumes:
17-
- ./volumes/wireguard/config:/config
18-
- ./volumes/wireguard/custom-cont-init.d:/custom-cont-init.d
19-
- ./volumes/wireguard/custom-services.d:/custom-services.d
20-
- /lib/modules:/lib/modules:ro
17+
- ./volumes/wireguard/config:/config
18+
- ./volumes/wireguard/custom-cont-init.d:/custom-cont-init.d
19+
- ./volumes/wireguard/custom-services.d:/custom-services.d
2120
cap_add:
22-
- NET_ADMIN
23-
- SYS_MODULE
21+
- NET_ADMIN
2422
sysctls:
25-
- net.ipv4.conf.all.src_valid_mark=1
23+
- net.ipv4.conf.all.src_valid_mark=1

0 commit comments

Comments
 (0)