Initial upload of configurations
This commit is contained in:
35
wireguard/docker-compose.yaml
Normal file
35
wireguard/docker-compose.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
version: '3.3'
|
||||
|
||||
services:
|
||||
wireguard:
|
||||
image: lscr.io/linuxserver/wireguard:latest
|
||||
container_name: wireguard
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- SYS_MODULE
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=${TIMEZONE}
|
||||
- SERVERURL=auto
|
||||
- SERVERPORT=51821
|
||||
- PEERS=1 #optional
|
||||
- PEERDNS=auto #optional
|
||||
- INTERNAL_SUBNET=10.13.13.0 #optional
|
||||
- ALLOWEDIPS=0.0.0.0/0 #optional
|
||||
- PERSISTENTKEEPALIVE_PEERS=all #optional
|
||||
- LOG_CONFS=true #optional
|
||||
volumes:
|
||||
- ${HOME_DIR}/${CONTAINER_NAME}/config:/config
|
||||
- /lib/modules:/lib/modules #optional
|
||||
ports:
|
||||
- ${PORT_WIREGUARD}:51821/udp
|
||||
env_file:
|
||||
- path: ./wireguard.env
|
||||
required: true
|
||||
- path: ../global.env
|
||||
required: true
|
||||
sysctls:
|
||||
- net.ipv4.conf.all.src_valid_mark=1
|
||||
restart: unless-stopped
|
||||
|
||||
12
wireguard/wireguard.env
Normal file
12
wireguard/wireguard.env
Normal file
@@ -0,0 +1,12 @@
|
||||
CONTAINER_NAME=wireguard
|
||||
PORT_WIREGUARD=51821
|
||||
WEBVAULT_ENABLED=true
|
||||
|
||||
#allow new users to sign up and create an account (should be disabled after initial setup)
|
||||
SIGNUP_ALLOWED=false
|
||||
|
||||
#Token for the admin interface, preferably use a long random string
|
||||
#One option is to use 'openssl rand -base64 48'
|
||||
#If not set, the admin panel is disabled
|
||||
TOKEN=
|
||||
|
||||
Reference in New Issue
Block a user