added wireguard

This commit is contained in:
cventastic
2021-12-20 18:43:16 +01:00
parent f0dd5990a2
commit fedbdb7347
2 changed files with 22 additions and 0 deletions

View File

@@ -4,8 +4,10 @@ Tested on Ubuntu 20.04.3 LTS
docker <br /> docker <br />
docker-compose <br /> docker-compose <br />
DNS A-Record pointing to your server <br /> DNS A-Record pointing to your server <br />
Paste wireguard wg0.conf from wireguard-server to wireguard/
#### Usage #### Usage
``` ```
git clone https://github.com/cventastic/POKT_DOKT.git git clone https://github.com/cventastic/POKT_DOKT.git
git submodule update --init --recursive git submodule update --init --recursive

View File

@@ -169,6 +169,26 @@ services:
# - "traefik.http.routers.pocket-mainnet.middlewares=auth" # - "traefik.http.routers.pocket-mainnet.middlewares=auth"
restart: unless-stopped restart: unless-stopped
wireguard:
image: lscr.io/linuxserver/wireguard
container_name: wireguard
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=$PUID
- PGID=$PGID
volumes:
- wireguard/config:/config
- /lib/modules:/lib/modules
ports:
- $SERVERPORT:$SERVERPORT/udp
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
restart: unless-stopped
volumes: volumes:
geth-goerli: geth-goerli:
geth-rinkeby: geth-rinkeby: