Update docker-compose.yml and provide .env
This commit is contained in:
parent
56345e5bae
commit
b150f128b1
2 changed files with 50 additions and 16 deletions
4
.env
Normal file
4
.env
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
VPN_PROVIDER=""
|
||||||
|
WIREGUARD_KEY=""
|
||||||
|
WIREGUARD_ADDRESSES=""
|
||||||
|
SERVER_HOSTNAMES=""
|
|
@ -1,22 +1,52 @@
|
||||||
# Docker compose file for http3-proxy used in Invidious
|
# Docker compose file for http3-proxy used in Invidious
|
||||||
|
# IMPORTANT: Create the docker network manually before using gluetun
|
||||||
|
# sudo docker network create --subnet=172.80.0.0/16 gluetun-http3-ytproxy
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
http3-proxy:
|
http3-proxy:
|
||||||
image: git.nadeko.net/fijxu/http3-proxy:latest
|
image: git.nadeko.net/fijxu/http3-ytproxy:latest
|
||||||
restart: unless-stopped
|
restart: always
|
||||||
deploy:
|
# Uncomment this IF YOU ARE using gluetun!
|
||||||
replicas: 6
|
network_mode: "service:gluetun"
|
||||||
environment:
|
# Uncomment this IF YOU ARE NOT using gluetun!
|
||||||
DISABLE_WEBP: 1
|
# ports:
|
||||||
|
# - "0.0.0.0:8443:8443/tcp" # HTTP/2
|
||||||
http3-proxy-nginx:
|
# - "0.0.0.0:8443:8443/udp" # HTTP/3 (QUIC)
|
||||||
image: nginx:latest
|
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
- ./key.key:/app/key.key
|
||||||
|
- ./fullchain.cer:/app/fullchain.cer
|
||||||
|
command: "./http3-ytproxy -l 0.0.0.0 -p 8443 -https -tls-key ./key.key -tls-cert ./fullchain.cer"
|
||||||
depends_on:
|
depends_on:
|
||||||
- http3-proxy
|
- gluetun
|
||||||
ports:
|
|
||||||
- "127.0.0.1:10012:3000"
|
|
||||||
|
|
||||||
|
gluetun:
|
||||||
|
image: qmcgaw/gluetun:latest
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
# THIS IS ACTUALLY THE PORT OF HTTP3-PROXY
|
||||||
|
# SINCE THE HTTP3-PTOXY SERVICE IS RUNNING
|
||||||
|
# UNDER GLUETUN NETWORK.
|
||||||
|
- "0.0.0.0:8443:8443/tcp" # HTTP/2
|
||||||
|
- "0.0.0.0:8443:8443/udp" # HTTP/3 (QUIC)
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
cap_add:
|
||||||
|
- NET_ADMIN
|
||||||
|
devices:
|
||||||
|
- /dev/net/tun:/dev/net/tun
|
||||||
|
volumes:
|
||||||
|
- ./gluetun:/gluetun
|
||||||
|
environment:
|
||||||
|
- VPN_SERVICE_PROVIDER="${VPN_PROVIDER}"
|
||||||
|
- VPN_TYPE=wireguard
|
||||||
|
- WIREGUARD_PRIVATE_KEY="${WIREGUARD_KEY}"
|
||||||
|
- WIREGUARD_ADDRESSES="${WIREGUARD_ADDRESSES}"
|
||||||
|
- SERVER_HOSTNAMES="${SERVER_HOSTNAMES}"
|
||||||
|
# Use system DNS (Setup a caching DNS server!)
|
||||||
|
- DNS_KEEP_NAMESERVER=on
|
||||||
|
networks:
|
||||||
|
gluetun-http3-ytproxy:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
gluetun-http3-ytproxy:
|
||||||
|
external: true
|
||||||
|
|
Loading…
Reference in a new issue