homelab/containers/docker-compose.yaml

23 lines
549 B
YAML
Raw Normal View History

2023-06-13 01:24:19 -03:00
version: "3.8"
services:
2023-06-13 19:17:38 -03:00
wg-easy:
2023-06-13 17:13:36 -03:00
environment:
2023-06-13 19:17:38 -03:00
# ⚠️ Change the server's hostname (clients will connect to):
- WG_HOST=home.marioverde.com.br
# ⚠️ Change the Web UI Password:
- PASSWORD
image: weejewel/wg-easy
container_name: wg-easy
hostname: wg-easy
2023-06-13 17:13:36 -03:00
volumes:
2023-06-13 19:17:38 -03:00
- ~/.wg-easy:/etc/wireguard
2023-06-13 19:05:55 -03:00
ports:
2023-06-13 19:17:38 -03:00
- "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