umbrel-apps/wireguard/docker-compose.yml
Josua Frank a367b22c61
App Submission: WireGuard (#1084)
Co-authored-by: nmfretz <nmfretz@gmail.com>
2024-05-28 06:06:25 -07:00

25 lines
574 B
YAML

version: "3.7"
services:
app_proxy:
environment:
APP_HOST: wireguard_app_1
APP_PORT: 51821
app:
image: ghcr.io/wg-easy/wg-easy:13@sha256:24eddefd4e5ae2cff930d4f9254f018d5f4cdd48daf559e7a73a14da6a9fbbb4
restart: on-failure
stop_grace_period: 1m
ports:
- "51820:51820/udp"
volumes:
- ${APP_DATA_DIR}/data/wireguard:/etc/wireguard
environment:
WG_HOST: ${DEVICE_DOMAIN_NAME}
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
- net.ipv4.ip_forward=1
- net.ipv4.conf.all.src_valid_mark=1