After my wireguard stopped working I decided to dump the whole thing and start over. I deleted the container and stack using portainer then reloaded everything. The second time around instead of creating the peer1 and peer2 folders it is creating the following two empty folders.
custom-cont-init.d and custom-services.d
Here is the stack I'm using. It worked just fine the first time around.
Code
version: "2.1"
services:
wireguard:
image: lscr.io/linuxserver/wireguard
container_name: wireguard
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=1000 #See point 1.
- PGID=100 #See point 1.
- TZ=America/New_York #Should be adjusted according to your location
- SERVERURL=My IP #See point 2.
- SERVERPORT=51820 #To change see next post
- PEERS=2 #See point 2. Number of clients you want to configure
- PEERDNS=auto
- INTERNAL_SUBNET=10.13.13.0 #Only change if it conflicts
- ALLOWEDIPS=0.0.0.0/0
volumes:
- /srv/dev-disk-by-uuid-1c0dc0b4-d37c-4a43-b9ed-597a8dd4f64f/Docker-Config:/config #See point 1.
- /lib/modules:/lib/modules
ports:
- 51823:51820/udp #To change see next post
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
restart: unless-stopped
Alles anzeigen