mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 13:46: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:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
build:
|
image: postgres:10
|
||||||
context: repo
|
|
||||||
dockerfile: docker/Dockerfile.postgres
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- /var/lib/postgresql/invidious:/var/lib/postgresql/data
|
- /var/lib/postgresql/invidious:/var/lib/postgresql/data
|
||||||
- /backups/invidious:/backups
|
- /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:
|
invidious:
|
||||||
build:
|
build:
|
||||||
context: repo
|
context: repo
|
||||||
|
|
@ -24,6 +29,28 @@ services:
|
||||||
- ./config.yml:/invidious/config/config.yml
|
- ./config.yml:/invidious/config/config.yml
|
||||||
expose:
|
expose:
|
||||||
- 3000
|
- 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:
|
labels:
|
||||||
- "traefik.backend=invidious"
|
- "traefik.backend=invidious"
|
||||||
- "traefik.docker.network=web"
|
- "traefik.docker.network=web"
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,6 @@
|
||||||
src: docker-compose.yml
|
src: docker-compose.yml
|
||||||
dest: "{{docker_compose_files_folder}}/invidious/"
|
dest: "{{docker_compose_files_folder}}/invidious/"
|
||||||
|
|
||||||
- name: Copy config
|
|
||||||
copy:
|
|
||||||
src: config.yml
|
|
||||||
dest: "{{docker_compose_files_folder}}/invidious/"
|
|
||||||
|
|
||||||
- name: Checkout git repo
|
- name: Checkout git repo
|
||||||
git:
|
git:
|
||||||
repo: https://github.com/omarroth/invidious.git
|
repo: https://github.com/omarroth/invidious.git
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue