• 2 Posts
  • 30 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