Skip to content

WireGuard Easy

Simple WireGuard VPN server with web interface for client management and QR code generation.

Docker Compose Example

wg-easy:
  image: ghcr.io/wg-easy/wg-easy:latest
  container_name: networking-wg-easy
  environment:
    - WG_HOST=your-domain.com
    - WG_PORT=51820
    - WG_DEFAULT_DNS=1.1.1.1  # Optional: custom DNS for clients
  volumes:
    - wireguard_data:/etc/wireguard
    - /lib/modules:/lib/modules:ro  # Required for kernel modules
  ports:
    - "51820:51820/udp"  # VPN port
    - "51821:51821/tcp"  # Web interface
  restart: unless-stopped
  cap_add:
    - NET_ADMIN  # Required for VPN functionality
    - SYS_MODULE
  sysctls:
    - net.ipv4.ip_forward=1  # Required for routing
    - net.ipv4.conf.all.src_valid_mark=1