mirror of
https://github.com/MSWS/Homelab.git
synced 2025-12-05 23:00:24 -08:00
- Add `inv_sig_helper` as a submodule reference in the repository - Update `code-server` Dockerfile with `vim` package and new Git SSH key configuration - Modify `invidious/compose.yml` to use a local `inv_sig_helper` image and comment out the remote image reference - Add a new `watchtower-kboaz` service in `watchtower/compose.yml` with unique scheduling and custom command
83 lines
2.1 KiB
YAML
83 lines
2.1 KiB
YAML
services:
|
|
invidious:
|
|
image: quay.io/invidious/invidious:latest
|
|
container_name: invidious
|
|
restart: always
|
|
environment:
|
|
# Please read the following file for a comprehensive list of all available
|
|
# configuration options and their associated syntax:
|
|
# https://github.com/iv-org/invidious/blob/master/config/config.example.yml
|
|
INVIDIOUS_CONFIG: |
|
|
db:
|
|
dbname: invidious
|
|
user: kemal
|
|
password: ${DB_PASSWORD}
|
|
host: invidious-db
|
|
port: 5432
|
|
check_tables: true
|
|
external_port: 443
|
|
domain: yt.msws.xyz
|
|
https_only: true
|
|
# statistics_enabled: true
|
|
signature_server: inv_sig_helper:12999
|
|
visitor_data: ${VISITOR_DATA}
|
|
po_token: ${PO_TOKEN}
|
|
# external_port:
|
|
hmac_key: ${HMAC_KEY}
|
|
healthcheck:
|
|
test: wget -nv --tries=1 --spider http://invidious:3000/api/v1/trending || exit 1
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 2
|
|
logging:
|
|
options:
|
|
max-size: "1G"
|
|
max-file: "4"
|
|
depends_on:
|
|
- invidious-db
|
|
networks:
|
|
- sig-helper
|
|
- invidious-db
|
|
- cloudflared
|
|
|
|
inv_sig_helper:
|
|
# image: quay.io/invidious/inv-sig-helper:latest
|
|
image: inv_sig_helper:local
|
|
command: ["--tcp", "0.0.0.0:12999"]
|
|
environment:
|
|
- RUST_LOG=info
|
|
restart: unless-stopped
|
|
cap_drop:
|
|
- ALL
|
|
read_only: true
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
networks:
|
|
- sig-helper
|
|
|
|
invidious-db:
|
|
image: docker.io/library/postgres:14
|
|
restart: always
|
|
container_name: invidious-db
|
|
volumes:
|
|
- postgresdata:/var/lib/postgresql/data
|
|
- ./config/sql:/config/sql
|
|
- ./docker/init-invidious-db.sh:/docker-entrypoint-initdb.d/init-invidious-db.sh
|
|
environment:
|
|
POSTGRES_DB: invidious
|
|
POSTGRES_USER: kemal
|
|
POSTGRES_PASSWORD: $DB_PASSWORD
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
|
|
networks:
|
|
- invidious-db
|
|
|
|
volumes:
|
|
postgresdata:
|
|
|
|
networks:
|
|
invidious-db:
|
|
sig-helper:
|
|
cloudflared:
|
|
external: true
|