• 1 Post
  • 24 Comments
Joined 1 year ago
cake
Cake day: June 23rd, 2023

help-circle




  • No minimum requirements. And here you go:

    #version: "3.8"
    services:
      invidious:
        image: quay.io/invidious/invidious:latest
        restart: unless-stopped
        security_opt:
          - no-new-privileges
        container_name: invidious
        stop_grace_period: 3s
        ports:
          - 127.0.0.1:3000:3000
        environment:
          INVIDIOUS_CONFIG: |
            db:
              dbname: invidious
              user: invidious
              password: superstrongpassword491
              host: postgres
              port: 5432
            check_tables: true
            popular_enabled: true
            login_enabled: false
            statistics_enabled: true
            hsts: true
            hmac_key: *PICK-A-LONG-RANDOM-STRING*
            https_only: true
            external_port: 443
            use_quic: true
            database_url: postgres://invidious:superstrongpassword491@postgres/invidious?auth_methods=md5,scram-sha-256
            force_resolve: ipv4
            domain: *your.domain.com*
        healthcheck:
          test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/comments/jNQXAC9IVRw || exit 1
          interval: 30s
          timeout: 5s
          retries: 2
        depends_on:
          - postgres
    
      postgres:
        image: postgres:15-alpine
        container_name: postgres
        security_opt:
          - no-new-privileges
        restart: always
        # purposefully excluded volumes section
        # the database will reset on recreate
        environment:
          POSTGRES_DB: invidious
          POSTGRES_USER: invidious
          POSTGRES_PASSWORD: superstrongpassword491
        healthcheck:
          test: pg_isready -U invidious -d invidious
          interval: 10s
          timeout: 5s
          retries: 5
    















  • Sounds like trying to use a rolled up newspaper to kill a fly.

    Isn’t this what tech/sysadmin solutions are all about now? 😆

    You can do it with janky restarts of your reverse proxy container, which results in down time of all apps

    Yet to see if this solution breaks up my other services but it currently fixes the downtime I’ve recently been having with the searxng docker + NPM setup.

    Use something like traefik, where you can allow it to connect to your docker socket (just like watchtower), and automatically wire up the new container’s reverse proxy when it comes back online.

    NPM covers most of my needs plus traefik doesn’t work for me (due to other reasons unrelated to the tech).