Hi,
here is my docker-compose for invidious:
services:
invidious:
image: quay.io/invidious/invidious:latest
container_name: invidious
restart: unless-stopped
networks:
- proxy
- invidious
volumes:
- /etc/localtime:/etc/localtime:ro
environment:
INVIDIOUS_CONFIG: |
db:
dbname: invidious
user: kemal
password: kemal
host: invidious-db
port: 5432
check_tables: true
external_port: 443
domain: invidious.example.com
https_only: true
statistics_enabled: false
# signature_server: inv_sig_helper:12999
hmac_key: "jkhasjkhjkas"
visitor_data: ilasjljaskl
po_token: askjaklsj
logging:
options:
max-size: "1G"
max-file: "4"
depends_on:
- invidious-db
- inv_sig_helper
labels:
- traefik.enable=true
- traefik.docker.network=proxy
- traefik.http.routers.invidious.entrypoints=https
- traefik.http.routers.invidious.rule=Host(`invidious.example.com`)
- traefik.http.routers.invidious.middlewares=ipwhitelist@file,secureHeaders@file
- traefik.http.routers.invidious.tls=true
- traefik.http.services.invidious.loadbalancer.server.port=3000
inv_sig_helper:
container_name: inv_sig_helper
image: quay.io/invidious/inv-sig-helper:latest
command: ["--tcp", "0.0.0.0:12999"]
environment:
- RUST_LOG=info
restart: unless-stopped
networks:
- invidious
cap_drop:
- ALL
read_only: true
security_opt:
- no-new-privileges:true
invidious-db:
image: docker.io/library/postgres:14
container_name: invidious-db
restart: unless-stopped
networks:
- invidious
volumes:
- postgresdata:/var/lib/postgresql/data
- ./config/sql:/config/sql
- ./docker/init-invidious-db.sh:/docker-entrypoint-initdb.d/init-invidious-db.sh
- /etc/localtime:/etc/localtime:ro
environment:
POSTGRES_DB: invidious
POSTGRES_USER: kemal
POSTGRES_PASSWORD: kemal
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
volumes:
postgresdata:
networks:
proxy:
external: true
invidious:
internal: true
I can access invidious via: https://invidious.example.com
As soon as i uncomment the line:
# signature_server: inv_sig_helper:12999
i get a "Bad Gateway" error in my browser.
The invidious container logs show that the container sees and reaches the inv_sig_helper container.
I have no idea what the problem is. Can somebody help me?