Update work with env variables
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
services:
|
||||
wireguard:
|
||||
image: lscr.io/linuxserver/wireguard:latest
|
||||
container_name: wireguard
|
||||
restart: unless-stopped
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- SYS_MODULE
|
||||
volumes:
|
||||
- ./data/wireguard:/config
|
||||
ports:
|
||||
- 51820:51820/udp
|
||||
sysctls:
|
||||
- net.ipv4.conf.all.src_valid_mark=1
|
||||
- net.ipv4.ip_forward=1
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
name: proxy
|
||||
external: true
|
||||
@@ -0,0 +1,10 @@
|
||||
WIREGUARD_HOST=
|
||||
|
||||
PUID=1000
|
||||
PGID=1000
|
||||
TZ="Europe/Moscow"
|
||||
SERVERURL=${WIREGUARD_HOST}
|
||||
SERVERPORT=51820
|
||||
PEERS=100
|
||||
PEERDNS=77.88.8.8
|
||||
INTERNAL_SUBNET=10.100.100.0
|
||||
Reference in New Issue
Block a user