mirror of
https://github.com/wfg/docker-wireguard.git
synced 2025-12-20 00:15:42 +01:00
14 lines
321 B
YAML
14 lines
321 B
YAML
services:
|
|
wireguard:
|
|
image: ghcr.io/wfg/wireguard:latest
|
|
container_name: wireguard
|
|
cap_add:
|
|
- NET_ADMIN
|
|
sysctls:
|
|
- net.ipv4.conf.all.src_valid_mark=1
|
|
environment:
|
|
- ALLOWED_SUBNETS=192.168.10.0/24
|
|
volumes:
|
|
- ./wg0.conf:/etc/wireguard/wg0.conf
|
|
restart: unless-stopped
|