OperationGoldenEagle

wireguard container

Jul 23rd, 2022
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.74 KB | None | 0 0
  1. ###
  2.  
  3. ###
  4.  
  5.   wireguard:
  6.     image: lscr.io/linuxserver/wireguard:latest
  7.     container_name: wireguard
  8.     cap_add:
  9.      - NET_ADMIN
  10.       - SYS_MODULE
  11.     environment:
  12.      - PUID=1000
  13.       - PGID=1000
  14.       - TZ=Europe/Copenhagen
  15.       - SERVERURL=blurred #optional
  16.       - SERVERPORT=51820 #optional
  17.       - PEERS=MiMobil,MorPi,Laptop #optional
  18.       - PEERDNS=auto #optional
  19.       - INTERNAL_SUBNET=10.13.13.0 #optional
  20.       - ALLOWEDIPS=0.0.0.0/0 #optional
  21.       - LOG_CONFS=true #optional
  22.     volumes:
  23.      - /mnt/usb1/appdata/config/wireguard-config:/config
  24.       - /lib/modules:/lib/modules
  25.     ports:
  26.      - 42069:51820/udp
  27.     sysctls:
  28.      - net.ipv4.conf.all.src_valid_mark=1
  29.     restart: unless-stopped
  30.  
  31. ###
  32.  
  33. ###
Advertisement
Add Comment
Please, Sign In to add comment