sites

Source for the daat.foo sites
git clone https://git.daat.foo/sites.git
Log | Files | Refs | Submodules

compose.yaml (1992B)


      1 name: daat-invidious
      2 
      3 services:
      4   invidious:
      5     build:
      6       context: .
      7       target: web
      8     restart: unless-stopped
      9     ports:
     10       - "127.0.0.1:8300:3000"
     11     environment:
     12       INVIDIOUS_CONFIG: |
     13         db:
     14           dbname: invidious
     15           user: invidious
     16           password: "${INV_DB_PASSWORD:?run install.sh}"
     17           host: db
     18           port: 5432
     19         check_tables: true
     20         domain: inv.daat.foo
     21         external_port: 443
     22         https_only: true
     23         hmac_key: "${INV_HMAC_KEY:?run install.sh}"
     24         invidious_companion:
     25           - private_url: http://companion:8282/companion
     26         invidious_companion_key: "${INV_COMPANION_KEY:?run install.sh}"
     27         login_enabled: false
     28         registration_enabled: false
     29         statistics_enabled: false
     30         popular_enabled: false
     31         default_user_preferences:
     32           dark_mode: dark
     33           default_home: ""
     34           feed_menu: []
     35           local: true
     36     depends_on:
     37       db:
     38         condition: service_healthy
     39       companion:
     40         condition: service_started
     41     security_opt:
     42       - no-new-privileges:true
     43 
     44   companion:
     45     image: quay.io/invidious/invidious-companion@sha256:292d889ff6d4cb31970cd35ea9eea8b249dc8c1dc3c66b3ad1b9c4fd0ffb62d1
     46     restart: unless-stopped
     47     environment:
     48       SERVER_SECRET_KEY: "${INV_COMPANION_KEY:?run install.sh}"
     49     volumes:
     50       - companion-cache:/var/tmp/youtubei.js
     51     cap_drop:
     52       - ALL
     53     read_only: true
     54     security_opt:
     55       - no-new-privileges:true
     56 
     57   db:
     58     build:
     59       context: .
     60       target: db
     61     restart: unless-stopped
     62     environment:
     63       POSTGRES_DB: invidious
     64       POSTGRES_USER: invidious
     65       POSTGRES_PASSWORD: "${INV_DB_PASSWORD:?run install.sh}"
     66     volumes:
     67       - postgres-data:/var/lib/postgresql/data
     68     healthcheck:
     69       test: ["CMD-SHELL", "pg_isready -h 127.0.0.1 -U $$POSTGRES_USER -d $$POSTGRES_DB"]
     70       interval: 3s
     71       timeout: 5s
     72       retries: 30
     73 
     74 volumes:
     75   postgres-data:
     76   companion-cache: