Files
dotfiles/config/ansible/tasks/servers/services/wireguard/docker-compose.yml.j2
Menno van Leeuwen 42cb3d5bf2
Some checks failed
Ansible Lint Check / check-ansible (push) Failing after 14s
Nix Format Check / check-format (push) Successful in 1m13s
Python Lint Check / check-python (push) Failing after 11s
fix: update WireGuard peers configuration to use underscores instead of hyphens
2025-03-25 15:23:03 +01:00

20 lines
481 B
Django/Jinja

services:
wireguard:
image: lscr.io/linuxserver/wireguard:latest
cap_add:
- NET_ADMIN
environment:
- PUID=1000
- PGID=100
- TZ=Europe/Amsterdam
- SERVERURL=mvl.sh
- PEERS=work_laptop,phone,desktop,personal_laptop
- ALLOWEDIPS=0.0.0.0/0, ::/0
volumes:
- "{{ wireguard_data_dir }}/wg-data:/config"
ports:
- 51820:51820/udp
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
restart: unless-stopped