Add docker-compose-with-gluetun.yml

This commit is contained in:
Minecon724 2025-03-29 10:07:31 +01:00
commit fb36c92465

View file

@ -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: