Compare commits

...
3 Commits
Author SHA1 Message Date
admin fe2e2cf699 Merge branch 'master' of gitea.happylizard.me:pizza2d1/docker-compose_files 2026-09-23 23:45:58 -06:00
admin 3e2a1be4d1 Add wireguard server2 2026-09-23 23:45:23 -06:00
admin fe0087314d Add wireguard server 2026-09-23 23:44:54 -06:00
3 changed files with 43 additions and 0 deletions
+11
View File
@@ -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=
+4
View File
@@ -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
+28
View File
@@ -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