Skip to content

Instantly share code, notes, and snippets.

@paulwinex
Created September 23, 2022 09:49
Show Gist options
  • Save paulwinex/be87f79687b96786098ec8fa6a8e251c to your computer and use it in GitHub Desktop.
Save paulwinex/be87f79687b96786098ec8fa6a8e251c to your computer and use it in GitHub Desktop.
version: '3.4'
services:
vpn:
image: weejewel/wg-easy
container_name: vpn
restart: always
environment:
- WG_HOST=[IP ADDRESS OF YOUR SERVER]
- PASSWORD=[PASSWORD FOR WEB UI]
volumes:
- .wg-easy:/etc/wireguard
ports:
- "51820:51820/udp"
- "51821:51821/tcp"
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
- "net.ipv4.conf.all.src_valid_mark=1"
- "net.ipv4.ip_forward=1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment