self-hosted/invidious/docker-compose.yml

59 lines
1.3 KiB
YAML
Raw Normal View History

2023-06-04 08:12:11 +02:00
version: "3.7"
2022-09-11 18:46:07 +02:00
services:
postgres:
2023-06-04 08:12:11 +02:00
image: postgres:14
container_name: postgres4invidious
2022-09-11 18:46:07 +02:00
restart: unless-stopped
2023-06-04 08:12:11 +02:00
init: true
2022-09-11 18:46:07 +02:00
networks:
2023-06-04 08:12:11 +02:00
- internal
2022-09-11 18:46:07 +02:00
volumes:
2023-06-04 08:12:11 +02:00
- postgresdata:/var/lib/postgresql/data
2022-09-11 18:46:07 +02:00
environment:
POSTGRES_DB: invidious
POSTGRES_USER: kemal
POSTGRES_PASSWORD: kemal
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER $$POSTGRES_DB"]
2023-06-04 08:12:11 +02:00
2022-09-11 18:46:07 +02:00
invidious:
image: sriegler/invidious-auth:latest
2023-06-04 08:12:11 +02:00
container_name: invidious
2022-09-11 18:46:07 +02:00
restart: unless-stopped
2023-06-04 08:12:11 +02:00
init: true
2022-09-11 18:46:07 +02:00
networks:
2023-06-10 10:34:26 +02:00
- internal
2023-06-04 08:12:11 +02:00
- proxy
2022-09-11 18:46:07 +02:00
mem_limit: 1024M
cpus: 0.5
environment:
INVIDIOUS_CONFIG: |
channel_threads: 1
check_tables: true
feed_threads: 1
db:
dbname: invidious
user: kemal
password: kemal
host: postgres
port: 5432
full_refresh: false
https_only: false
popular_enabled: false
statistics_enabled: false
domain: invidious.example.com
external_port: 443
registration_enabled: false
captcha_enabled: false
admins: []
disable_proxy: false
geo_bypass: false
depends_on:
- postgres
networks:
2023-06-10 10:34:26 +02:00
internal: {}
2023-06-04 08:12:11 +02:00
volumes:
postgresdata: {}