Skip to main content

Gluetun

version: "3.3"
services:
  gluetun:
    image: qmcgaw/gluetun
    cap_add:
      - NET_ADMIN
    ports:
      - 8889:8888/tcp # HTTP proxy  #original 8888:8888
      - 8388:8388/tcp # Shadowsocks
      - 8388:8388/udp # Shadowsocks
  #    - 5800:5800 # firefox
  #    - 6080:6080 # soulseek
    volumes:
      - /srv/path/Files/Gluetun:/gluetun/config.conf:ro
    environment:
      - VPNSP=custom  # or supported provider
      - VPN_TYPE=wireguard
     ## For OpenVPN
  #    - OPENVPN_CUSTOM_CONFIG=/gluetun/custom.conf
     ## For Wireguard
      - WIREGUARD_ENDPOINT_IP=
      - WIREGUARD_ENDPOINT_PORT=51820
      - WIREGUARD_PUBLIC_KEY=
      - WIREGUARD_PRIVATE_KEY=
      - WIREGUARD_PRESHARED_KEY=
      - WIREGUARD_ADDRESS=
  #    - SERVER_COUNTRIES=Netherlands # optionnal
  #    - FIREWALL_VPN_INPUT_PORTS= # for port forwarding, multiple comma separated
      - TZ=Europe/Paris
    restart: unless-stopped

With AirVPN : https://github.com/qdm12/gluetun/wiki/AirVPN

Port Forwarding : https://github.com/qdm12/gluetun/wiki/VPN-server-port-forwarding