2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2026-01-04 12:05:02 +01:00

add wireguard

This commit is contained in:
kev
2019-07-10 04:08:34 +08:00
parent 79e13d6dde
commit a4dd96bf5a
5 changed files with 75 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
wireguard:
image: easypi/wireguard-arm
command: ["sh", "-c", "wg-quick up wg0 && sleep infinity"]
ports:
- "51820:51820/udp"
volumes:
- ./data:/etc/wireguard
- /lib/modules:/lib/modules
cap_add:
- NET_ADMIN
- SYS_MODULE
restart: unless-stopped