Compare commits
3
Commits
fdfe35d734
...
fe2e2cf699
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fe2e2cf699 | ||
|
|
3e2a1be4d1 | ||
|
|
fe0087314d |
@@ -0,0 +1,11 @@
|
||||
# These top ones are required to be filled out
|
||||
|
||||
# Mullvad keys work here
|
||||
WIREGUARD_PRIVATE_KEY=
|
||||
WIREGUARD_ADDRESSES=
|
||||
|
||||
# Optional vars
|
||||
# Exposed port (default is 51820)
|
||||
PORT=1984
|
||||
# Number of client.conf files you want automatically generated (into /config/peer*/peer*.conf)
|
||||
PEERS=
|
||||
@@ -0,0 +1,4 @@
|
||||
Changes to the docker-compose and .env files may not affect the previously made wireguard config files. So it is recommended to:
|
||||
- Stop/Remove the container
|
||||
- Delete the previous configuration (default location is ./wireguard)
|
||||
- Start the container
|
||||
@@ -0,0 +1,28 @@
|
||||
---
|
||||
services:
|
||||
wireguard:
|
||||
image: lscr.io/linuxserver/wireguard:latest
|
||||
container_name: wireguard
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- SYS_MODULE #optional
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=Etc/UTC
|
||||
- SERVERURL=wg.happylizard.me #optional
|
||||
- PEERS=${PEERS:-3}
|
||||
- SERVERPORT=${PORT:-51820} #optional
|
||||
- PEERDNS=auto #optional
|
||||
- INTERNAL_SUBNET=10.20.0.0 #optional
|
||||
- ALLOWEDIPS=0.0.0.0/0 #optional
|
||||
- PERSISTENTKEEPALIVE_PEERS= #optional
|
||||
- LOG_CONFS=true #optional
|
||||
volumes:
|
||||
- ./wireguard:/config
|
||||
- /lib/modules:/lib/modules #optional
|
||||
ports:
|
||||
- ${PORT:-51820}:${PORT:-51820}/udp
|
||||
sysctls:
|
||||
- net.ipv4.conf.all.src_valid_mark=1
|
||||
restart: unless-stopped
|
||||
Reference in New Issue
Block a user