This project has saved me so many headaches, I highly encourage people to go and check it out if you need a VPN in a docker container, its written in Go, and using OpenVPN or Wireguard, DNS over TLS, with a few proxy servers built-in.

        • LunchOP
          link
          fedilink
          18 months ago

          I used to use hotio, but after I saw that Tailscale docker mods are only supported by Linuxserver.io images, I have switched to the across the board. I also think it’s good to use images that are better/longer supported.

            • LunchOP
              link
              fedilink
              3
              edit-2
              8 months ago

              I am assuming you meant the setup of what was discussed in this thread a d not how to change just were the image is pulled from?

              Gluetun /w Wireguard and Tailscale

              ---
              version: '3'
              services:
                gluetun:
                 image: qmcgaw/gluetun
                 container_name: gleutun-exitnode
                 restart: unless-stopped
                 cap_add:
                  - NET_ADMIN
                 environment:
                    - UPDATER_PERIOD=24h
                    - TZ=Europe/Stockholm
                    - VPN_SERVICE_PROVIDER=custom
                    - VPN_TYPE=wireguard
                    - VPN_ENDPOINT_IP=
                    - VPN_ENDPOINT_PORT=
                    - WIREGUARD_PUBLIC_KEY=
                    - WIREGUARD_PRIVATE_KEY=
                    - WIREGUARD_ADDRESSES=
                 devices:
                  - /dev/net/tun:/dev/net/tun
                 volumes:
                  - /docker/appdata/gluetun:/gluetun
                tailscale:
                 container_name: tailscale-exitnode
                 cap_add:
                    - NET_ADMIN
                    - NET_RAW
                 volumes:
                    - /docker/appdata/tailscale/var/lib:/var/lib
                    - /dev/net/tun:/dev/net/tun
                 network_mode: "service:gluetun"
                 restart: unless-stopped
                 environment:
                    - TS_HOSTNAME=exitnode
                    - TS_AUTHKEY=
                    - TS_EXTRA_ARGS=--advertise-exit-node --ssh
                    - TS_NO_LOGS_NO_SUPPORT=true
                    - TS_STATE_DIR=/var/lib
                 image: tailscale/tailscale