April 14, 2024, 14:58
yml version: "2.1" services: wireguard: image: lscr.io/linuxserver/wireguard:latest container_name: wireguard cap_add: - NET_ADMIN #- SYS_MODULE #optional environment: - PUID=1000 - PGID=1000 - TZ=Europe/London - SERVERURL=pi5vpn.duckdns.org #- SERVERPORT=51820 #optional - PEERS=3 #optional #- PEERDNS= #optional #- INTERNAL_SUBNET=10.13.13.0 #optional #- ALLOWEDIPS=0.0.0.0/0 #optional #- PERSISTENTKEEPALIVE_PEERS= #optional - LOG_CONFS=true #optional volumes: - /root/dockerdata/wg:/config #- /lib/modules:/lib/modules #optional ports: - 51820:51820/udp sysctls: - net.ipv4.conf.all.src_valid_mark=1 restart: always networks: - mainnet networks: mainnet: external: truei can succesfully connect but it doesnt give me internet access and im using duckdns. this is the docker-compose file for that
yml dynamic-dns: container_name: dynamic-dns image: joweisberg/dynamic-dns:latest restart: unless-stopped environment: - TZ=Europe/London - USER=not tellin - PASSWORD=not tellin - SERVICE=duckdns - HOSTNAME="pi5vpn.duckdns.org" - DETECTIP=1 - INTERVAL=10this is on my raspberry pi 5 running raspberry pi os.