Add a wireguard_port variable

This commit is contained in:
tom.chivert 2023-10-26 18:16:30 +02:00
parent 65892db2ee
commit ffd6b8380b

View File

@ -14,7 +14,7 @@ services:
image: weejewel/wg-easy:{{ wireguard_version | default("latest") }} image: weejewel/wg-easy:{{ wireguard_version | default("latest") }}
restart: unless-stopped restart: unless-stopped
ports: ports:
- "51820:51820/udp" - "{{ wireguard_port | default("51820") }}:51820/udp"
volumes: volumes:
- 'wireguard__etc_wireguard:/etc/wireguard' - 'wireguard__etc_wireguard:/etc/wireguard'
cap_add: cap_add: