Home Catalogus Gluetun
Media Stack

Gluetun

A lightweight, multi-provider VPN client container supporting OpenVPN and WireGuard protocols to route Docker service traffic securely.

ARM64 & AMD64
Docker & Rootless Podman
100% Self-Hosted (Geen Lock-in)
RAM Profiel: Laag
Standaard Poort: Port 8000

Waarom deze configuratie?

Snelle Start (Standalone Docker Compose)

Onderstaand compose-fragment is direct te gebruiken in elke Docker- of Podman-omgeving:

services:
  gluetun:
    image: "ghcr.io/qdm12/gluetun:latest"
    container_name: njorddeploy-gluetun
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun:/dev/net/tun
    ports:
      - "8000:8000/tcp" # Gluetun control server API
      - "8888:8888/tcp" # HTTP proxy
      - "8388:8388/tcp" # Shadowsocks TCP
      - "8388:8388/udp" # Shadowsocks UDP
    volumes:
      - "./data/gluetun:/gluetun"
    environment:
      - "VPN_SERVICE_PROVIDER=custom"
      - "VPN_TYPE=wireguard"
      - "WIREGUARD_PRIVATE_KEY=wireguard_private_key"
      - "WIREGUARD_ADDRESSES=wireguard_addresses"
      - "VPN_ENDPOINT_IP=vpn_endpoint_ip"
      - "VPN_ENDPOINT_PORT=51820"
      - "TZ=Etc/UTC"
      - "PUID=1000"
      - "PGID=1000"
    user: "0:0"
    networks:
      - njorddeploy_net

networks:
  njorddeploy_net:

Start de service direct via de commandline: docker compose up -d

Configuratie & Omgevingsvariabelen

Belangrijkste configuratieparameters en standaardwaarden uit de NjordDeploy component-sjabloon:

Variable Default Value Description
GLUETUN_CONTROL_PORT 8000 The port for Gluetun's internal control server API.
GLUETUN_HTTP_PROXY_PORT 8888 The port for the built-in HTTP proxy server.
GLUETUN_SHADOWSOCKS_PORT 8388 The port for the built-in Shadowsocks proxy server (TCP and UDP).
VPN_SERVICE_PROVIDER custom Your VPN service provider (e.g., ivpn, nordvpn, private internet access, custom).
VPN_TYPE wireguard The VPN protocol type (e.g., openvpn, wireguard).
WIREGUARD_PRIVATE_KEY *None* Your Wireguard private key, if using Wireguard.
WIREGUARD_ADDRESSES *None* Your Wireguard IP addresses (e.g., 172.16.0.1/32), if using Wireguard.
VPN_ENDPOINT_IP *None* The IP address of your VPN server endpoint. Required for 'custom' provider.
VPN_ENDPOINT_PORT 51820 The port of your VPN server endpoint. Required for 'custom' provider.
TZ Etc/UTC Container timezone (e.g., Europe/London, America/New_York).
PUID 1000 User ID for permissions. Set to 0 for root if experiencing permission issues.
PGID 1000 Group ID for permissions. Set to 0 for root if experiencing permission issues.

Ecosysteem & Bedrijfsintegratie

Eenvoudig beheren via NjordDeploy

Installeer, bewaak en update deze service met 1 klik op uw eigen Raspberry Pi of Proxmox server via de NjordDeploy Configurator.