From ce4b6db041ffb976db4943cff5051d593376310e Mon Sep 17 00:00:00 2001 From: JakeKydd Date: Sun, 20 Oct 2024 01:17:26 +0200 Subject: [PATCH 1/2] add: wireguard-easy template --- public/svgs/wireguard.svg | 7 +++++++ templates/compose/wireguard-easy.yaml | 27 +++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 public/svgs/wireguard.svg create mode 100644 templates/compose/wireguard-easy.yaml diff --git a/public/svgs/wireguard.svg b/public/svgs/wireguard.svg new file mode 100644 index 000000000..81823b3eb --- /dev/null +++ b/public/svgs/wireguard.svg @@ -0,0 +1,7 @@ + + \ No newline at end of file diff --git a/templates/compose/wireguard-easy.yaml b/templates/compose/wireguard-easy.yaml new file mode 100644 index 000000000..56d3c89ce --- /dev/null +++ b/templates/compose/wireguard-easy.yaml @@ -0,0 +1,27 @@ +# documentation: https://github.com/wg-easy/wg-easy +# slogan: The easiest way to run WireGuard VPN + Web-based Admin UI. +# tags: wireguard,vpn,web,admin +# logo: svgs/wireguard.svg +# port: 8000 +services: + wg-easy: + image: ghcr.io/wg-easy/wg-easy + container_name: wg-easy + environment: + - LANG=en + - WG_HOST=$SERVICE_FQDN_WIREGUARDEASY + - PASSWORD_HASH=$2y$10$2wrW.nOpZLjGSGaiocD8xOo6uLCa.CebkaqswyAz.hSd5PYKm2WVu + - PORT=8000 + - WG_PORT=51820 + volumes: + - ~/.wg-easy:/etc/wireguard + ports: + - "51820:51820/udp" + - "8000:8000/tcp" + cap_add: + - NET_ADMIN + - SYS_MODULE + sysctls: + - net.ipv4.conf.all.src_valid_mark=1 + - net.ipv4.ip_forward=1 + restart: unless-stopped From d7852c334e007b270dbd19d2b047840c964c5c1d Mon Sep 17 00:00:00 2001 From: JakeKydd Date: Sun, 20 Oct 2024 14:22:00 +0200 Subject: [PATCH 2/2] fix: volume --- templates/compose/wireguard-easy.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/templates/compose/wireguard-easy.yaml b/templates/compose/wireguard-easy.yaml index 56d3c89ce..f0ada4dcf 100644 --- a/templates/compose/wireguard-easy.yaml +++ b/templates/compose/wireguard-easy.yaml @@ -6,15 +6,14 @@ services: wg-easy: image: ghcr.io/wg-easy/wg-easy - container_name: wg-easy environment: + - SERVICE_FQDN_WIREGUARDEASY_8000 - LANG=en - WG_HOST=$SERVICE_FQDN_WIREGUARDEASY - - PASSWORD_HASH=$2y$10$2wrW.nOpZLjGSGaiocD8xOo6uLCa.CebkaqswyAz.hSd5PYKm2WVu - PORT=8000 - WG_PORT=51820 volumes: - - ~/.wg-easy:/etc/wireguard + - wg-easy:/etc/wireguard ports: - "51820:51820/udp" - "8000:8000/tcp"