mirror of https://github.com/wg-easy/wg-easy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
674 B
32 lines
674 B
version: "3.8"
|
|
|
|
services:
|
|
wg-easy:
|
|
environment:
|
|
# ⚠️ Change the server's hostname (clients will connect to):
|
|
- WG_HOST=wg-easy.myhomelab.com
|
|
|
|
# ⚠️ Change the Web UI Password:
|
|
- PASSWORD=foobar123
|
|
image: weejewel/wg-easy
|
|
container_name: wg-easy
|
|
hostname: wg-easy
|
|
volumes:
|
|
- ~/.wg-easy:/etc/wireguard
|
|
ports:
|
|
- "51820:51820/udp"
|
|
restart: unless-stopped
|
|
cap_add:
|
|
- NET_ADMIN
|
|
- SYS_MODULE
|
|
sysctls:
|
|
- net.ipv4.ip_forward=1
|
|
- net.ipv4.conf.all.src_valid_mark=1
|
|
networks:
|
|
- default
|
|
- npm_default
|
|
|
|
networks:
|
|
npm_default:
|
|
external:
|
|
name: npm_default
|
|
|