Skip to content

Latest commit

 

History

History
37 lines (32 loc) · 846 Bytes

File metadata and controls

37 lines (32 loc) · 846 Bytes

docker-wg

Docker WireGuard but with Http APIs

This project wraps WireGuard and some simple endpoints into one service.
Those endpoints help you interact with WireGuard via Http requests, when you run WireGuard as a VPN server in your microservice environment.

Build

docker build . -t wg

Run

docker run  \
  --cap-add=NET_ADMIN \
  --cap-add=SYS_MODULE \
  -e TZ=Europe/London \
  -e SERVERPORT=51820 \
  -e PEERS=1 \
  -e PEERDNS=auto \
  -e INTERNAL_SUBNET=10.13.13.0/24 \
  -e ALLOWEDIPS=0.0.0.0/0 \
  -e HOST=0.0.0.0 \
  -e PORT=8000 \
  -p 51820:51820/udp \
  -p 8000:8000 \
  --name wg \
  wg

References

  1. https://github.com/WireGuard
  2. https://hub.docker.com/r/linuxserver/wireguard
  3. https://man7.org/linux/man-pages/man8/wg.8.html
  4. https://man7.org/linux/man-pages/man8/wg-quick.8.html