version: '3.8' services: gluetun: image: qmcgaw/gluetun container_name: streamlink-server-gluetun cap_add: - NET_ADMIN devices: - /dev/net/tun:/dev/net/tun ports: - "6090:6090" environment: - VPN_SERVICE_PROVIDER=custom - VPN_TYPE=wireguard - WIREGUARD_ENDPOINT_IP=45.38.16.144 - WIREGUARD_ENDPOINT_PORT=51820 - WIREGUARD_PUBLIC_KEY=KgTUh3KLijVluDvNpzDCJJfrJ7EyLzYLmdHCksG4sRg= - WIREGUARD_PRIVATE_KEY=UJ2OhqyIlXQfbuYKTf8etvGGgT6SRGKzehlHi/k20Hc= - WIREGUARD_ADDRESSES=100.64.7.102/32 streamlink-server: build: context: . dockerfile: Dockerfile container_name: streamlink-server network_mode: "service:gluetun" volumes: - ./data:/data restart: unless-stopped environment: - TZ=UTC healthcheck: test: ["CMD", "curl", "-f", "http://localhost:6090/channels?username=65128929&password=34243636"] interval: 30s timeout: 10s retries: 3 start_period: 10s