Skip to content

Instantly share code, notes, and snippets.

@seldoff
Created April 15, 2023 23:27
Show Gist options
  • Save seldoff/93442cbd2ba149ab4dd1e1d7068a49bc to your computer and use it in GitHub Desktop.
Save seldoff/93442cbd2ba149ab4dd1e1d7068a49bc to your computer and use it in GitHub Desktop.
Wireguard docker
networks:
wireguard:
name: wireguard
services:
wireguard:
container_name: wireguard
image: lscr.io/linuxserver/wireguard:latest
restart: unless-stopped
cap_add:
- NET_ADMIN
environment:
- SERVERURL=34.134.63.146
# - SERVERPORT=51820
- PEERS=peer1
networks:
- wireguard
ports:
- 51820:51820/udp
volumes:
- ./config:/config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment