Add Wireguard VPN service
This commit is contained in:
parent
c4ef0d3c18
commit
d920cd968b
2 changed files with 31 additions and 0 deletions
30
services/wireguard/docker-compose.yml
Normal file
30
services/wireguard/docker-compose.yml
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
version: '3.7'
|
||||||
|
|
||||||
|
# https://docs.linuxserver.io/images/docker-wireguard
|
||||||
|
# https://github.com/linuxserver/docker-wireguard/
|
||||||
|
|
||||||
|
networks:
|
||||||
|
wireguard:
|
||||||
|
|
||||||
|
services:
|
||||||
|
wireguard:
|
||||||
|
image: lscr.io/linuxserver/wireguard:latest
|
||||||
|
container_name: wireguard
|
||||||
|
restart: "${RESTART:-no}"
|
||||||
|
hostname: vpn
|
||||||
|
domainname: ${BASE_DOMAIN}
|
||||||
|
cap_add:
|
||||||
|
- NET_ADMIN
|
||||||
|
environment:
|
||||||
|
- USER_UID=1000
|
||||||
|
- USER_GID=1000
|
||||||
|
|
||||||
|
- TZ=${TIMEZONE}
|
||||||
|
- LOG_CONFS=false
|
||||||
|
- PEERS=${WIREGUARD_PEERS}
|
||||||
|
ports:
|
||||||
|
- '${WIREGUARD_VPN_PORT}:51820/udp'
|
||||||
|
volumes:
|
||||||
|
- ${BASE_DIR:-/srv}/wireguard/config:/config
|
||||||
|
networks:
|
||||||
|
- wireguard
|
|
@ -110,6 +110,7 @@ apk update && apk upgrade && apk add \
|
||||||
qemu-guest-agent \
|
qemu-guest-agent \
|
||||||
sudo \
|
sudo \
|
||||||
tree \
|
tree \
|
||||||
|
wireguard-tools \
|
||||||
zsh \
|
zsh \
|
||||||
|
|
||||||
# currently not available in alpine 3.18:
|
# currently not available in alpine 3.18:
|
||||||
|
|
Loading…
Reference in a new issue