Created
September 23, 2022 09:49
-
-
Save paulwinex/be87f79687b96786098ec8fa6a8e251c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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