mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 21:57:00 +01:00
65 lines
1.6 KiB
YAML
65 lines
1.6 KiB
YAML
version: '3'
|
|
|
|
networks:
|
|
web:
|
|
external:
|
|
name: web
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:10
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /var/lib/postgresql/invidious:/var/lib/postgresql/data
|
|
- /backups/invidious:/backups
|
|
- ./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
|
|
dockerfile: docker/Dockerfile
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./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"
|
|
- "traefik.frontend.rule=Host:yt.banditlair.com"
|
|
- "traefik.enable=true"
|
|
- "traefik.port=3000"
|
|
- "traefik.default.protocol=http"
|
|
depends_on:
|
|
- postgres
|
|
networks:
|
|
- web
|
|
- default
|