Deploy a Wireguard Portainer Docker Stack
WireGuard is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography. It aims to be faster, simpler, leaner, and more useful than IPsec, while avoiding the massive headache. It intends to be considerably more performant than OpenVPN. WireGuard is designed as a general purpose VPN for running on embedded interfaces and super computers alike, fit for many different circumstances. Initially released for the Linux kernel, it is now cross-platform (Windows, macOS, BSD, iOS, Android) and widely deployable. It is currently under heavy development, but already it might be regarded as the most secure, easiest to use, and simplest VPN solution in the industry.
Functioning Portainer Docker Stack Example:
version: '3.8'
services:
wg-easy:
cap_add:
- NET_ADMIN
- SYS_MODULE
container_name: wg-easy
environment:
- WG_HOST=<replace-with-your-host-domain>
- PASSWORD=<replace-with-secure-password>
volumes:
- '/var/lib/docker_data/wg-easy:/etc/wireguard'
ports: # exposed-port:internal-port
- '51820:51820/udp'
- '51821:51821/tcp'
restart: unless-stopped
image: weejewel/wg-easy