From fb36c9246538ea02856f32dcbbe92c7e73413b8f Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Sat, 29 Mar 2025 10:07:31 +0100 Subject: [PATCH] Add docker-compose-with-gluetun.yml --- docker-compose-with-gluetun.yml | 52 +++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 docker-compose-with-gluetun.yml diff --git a/docker-compose-with-gluetun.yml b/docker-compose-with-gluetun.yml new file mode 100644 index 0000000..bded801 --- /dev/null +++ b/docker-compose-with-gluetun.yml @@ -0,0 +1,52 @@ +services: + companion: + image: quay.io/invidious/invidious-companion:latest + restart: unless-stopped + network_mode: "service:gluetun" + cap_drop: + - ALL + read_only: true + # cache for youtube library + volumes: + - companioncache:/var/tmp/youtubei.js:rw + - ./config.toml:/app/config/config.toml:ro + security_opt: + - no-new-privileges:true + + gluetun: + image: qmcgaw/gluetun + cap_add: + - NET_ADMIN + devices: + - /dev/net/tun:/dev/net/tun + environment: + [REPLACE THIS] + + acme: + image: neilpang/acme.sh:latest # https://github.com/acmesh-official/acme.sh/wiki/Run-acme.sh-in-docker + restart: unless-stopped + volumes: + - acme-data:/acme.sh + - ssl-certs:/etc/ssl + - ./html:/var/www/html + command: daemon + + nginx: + image: nginx:alpine-slim # https://hub.docker.com/_/nginx + restart: unless-stopped + volumes: + - ./nginx:/etc/nginx + - ./html:/var/www/html:ro + - ssl-certs:/etc/ssl:ro + ports: + - "203.0.113.1:80:80" + - "[2001:db8::1]:80:80" + - "203.0.113.1:443:443" + - "[2001:db8::1]:443:443" + - "203.0.113.1:443:443/udp" + - "[2001:db8::1]:443:443/udp" + +volumes: + companioncache: + acme-data: + ssl-certs: \ No newline at end of file