update
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
Wireguard Made Easy
|
||||
|
||||
# Need to setup portforwarding on your router for 51820
|
||||
# Enter domain url wg.example.com
|
||||
# Enter in a password, this is for the gui.
|
||||
# Docs - https://docs.techdox.nz/wgeasy/
|
||||
|
||||
version: '3.8'
|
||||
services:
|
||||
wg-easy:
|
||||
image: ghcr.io/wg-easy/wg-easy # The Docker image to use.
|
||||
container_name: wireguard # Name of the container.
|
||||
environment: # Environment variables to configure the instance.
|
||||
- LANG=en # Language settings.
|
||||
- WG_HOST=wg.example.com # Public IP or domain name where WG-Easy is accessible.
|
||||
- PASSWORD=<Password> # Password for accessing the WG-Easy web interface.
|
||||
- PORT=51821 # Port for the web interface.
|
||||
- WG_PORT=51820 # WireGuard port for VPN traffic.
|
||||
volumes:
|
||||
- /home/docker/wireguard:/etc/wireguard # Volume mapping for WireGuard configuration files.
|
||||
ports:
|
||||
- "51820:51820/udp" # UDP port used by WireGuard.
|
||||
- "51821:51821/tcp" # TCP port for accessing the web interface.
|
||||
cap_add: # Capabilities required for managing networking features.
|
||||
- NET_ADMIN
|
||||
- SYS_MODULE
|
||||
sysctls: # Kernel parameters that need to be set for WireGuard.
|
||||
- net.ipv4.conf.all.src_valid_mark=1
|
||||
- net.ipv4.ip_forward=1
|
||||
restart: unless-stopped # Ensures the container restarts automatically unless manually stopped.
|
||||
Reference in New Issue
Block a user