mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Update and fix Invidious
This commit is contained in:
parent
6765feee20
commit
00cfb9a1c1
3 changed files with 31 additions and 26 deletions
|
|
@ -1,17 +0,0 @@
|
|||
crawl_threads: 1
|
||||
channel_threads: 1
|
||||
feed_threads: 1
|
||||
video_threads: 1
|
||||
db:
|
||||
user: kemal
|
||||
password: kemal
|
||||
host: postgres
|
||||
port: 5432
|
||||
dbname: invidious
|
||||
full_refresh: false
|
||||
https_only: true
|
||||
geo_bypass: true
|
||||
top_enabled: false
|
||||
force_resolve: ipv4
|
||||
admins:
|
||||
- paultrial
|
||||
|
|
@ -7,14 +7,19 @@ networks:
|
|||
|
||||
services:
|
||||
postgres:
|
||||
build:
|
||||
context: repo
|
||||
dockerfile: docker/Dockerfile.postgres
|
||||
image: postgres:10
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /var/lib/postgresql/invidious:/var/lib/postgresql/data
|
||||
- /backups/invidious:/backups
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- ./repo/config/sql:/config/sql
|
||||
- ./repo/docker/init-invidious-db.sh:/docker-entrypoint-initdb.d/init-invidious-db.sh
|
||||
environment:
|
||||
POSTGRES_DB: invidious
|
||||
POSTGRES_PASSWORD: kemal
|
||||
POSTGRES_USER: kemal
|
||||
healthcheck:
|
||||
test: [ "CMD", "pg_isready", "-U", "postgres" ]
|
||||
invidious:
|
||||
build:
|
||||
context: repo
|
||||
|
|
@ -24,6 +29,28 @@ services:
|
|||
- ./config.yml:/invidious/config/config.yml
|
||||
expose:
|
||||
- 3000
|
||||
environment:
|
||||
# Adapted from ./config/config.yml
|
||||
INVIDIOUS_CONFIG: |
|
||||
crawl_threads: 1
|
||||
channel_threads: 1
|
||||
check_tables: true
|
||||
feed_threads: 1
|
||||
video_threads: 1
|
||||
db:
|
||||
user: kemal
|
||||
password: kemal
|
||||
host: postgres
|
||||
port: 5432
|
||||
dbname: invidious
|
||||
full_refresh: false
|
||||
https_only: true
|
||||
geo_bypass: true
|
||||
top_enabled: false
|
||||
force_resolve: ipv4
|
||||
admins:
|
||||
- paultrial
|
||||
domain: yt.banditlair.com
|
||||
labels:
|
||||
- "traefik.backend=invidious"
|
||||
- "traefik.docker.network=web"
|
||||
|
|
|
|||
|
|
@ -4,11 +4,6 @@
|
|||
src: docker-compose.yml
|
||||
dest: "{{docker_compose_files_folder}}/invidious/"
|
||||
|
||||
- name: Copy config
|
||||
copy:
|
||||
src: config.yml
|
||||
dest: "{{docker_compose_files_folder}}/invidious/"
|
||||
|
||||
- name: Checkout git repo
|
||||
git:
|
||||
repo: https://github.com/omarroth/invidious.git
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue