mirror of
https://git.myvelabs.com/docker/docker-compose.yaml.git
synced 2025-12-17 21:26:17 +00:00
Reboot
This commit is contained in:
parent
b7336a277f
commit
e650d80b1e
58 changed files with 1747 additions and 0 deletions
15
invidious/.env
Normal file
15
invidious/.env
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# Environment file for docker-compose.yaml
|
||||
# Generate new passwords with:
|
||||
# openssl rand -hex 32
|
||||
|
||||
# Fill in registry
|
||||
REGISTRY=
|
||||
|
||||
# Invidious
|
||||
INVIDIOUS_PORT=
|
||||
INVIDIOUS_DBNAME=
|
||||
INVIDIOUS_DBUSER=
|
||||
INVIDIOUS_DBPASS=
|
||||
INVIDIOUS_URL=
|
||||
INVIDIOUS_ADMIN=
|
||||
INVIDIOUS_HMAC=
|
||||
59
invidious/docker-compose.yaml
Normal file
59
invidious/docker-compose.yaml
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
services:
|
||||
|
||||
# https://github.com/iv-org/invidious/releases/latest
|
||||
# invidious
|
||||
invidious:
|
||||
image: ${REGISTRY}/invidious
|
||||
container_name: invidious
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- ${INVIDIOUS_PORT:-3000}:3000
|
||||
environment:
|
||||
INVIDIOUS_CONFIG: |
|
||||
db:
|
||||
host: invidious-postgresql
|
||||
port: 5432
|
||||
dbname: ${INVIDIOUS_DBNAME:-invidious}
|
||||
user: ${INVIDIOUS_DBUSER:-invidious}
|
||||
password: ${INVIDIOUS_DBPASS:-invidious}
|
||||
check_tables: true
|
||||
domain: ${INVIDIOUS_URL:-https://localhost:${INVIDIOUS_PORT:-3000}}
|
||||
https_only: true
|
||||
registration_enabled: false
|
||||
admins: ["${INVIDIOUS_ADMIN:-admin}"]
|
||||
hmac_key: ${INVIDIOUS_HMAC:-invidious}
|
||||
quality: dash
|
||||
quality_dash: auto
|
||||
healthcheck:
|
||||
test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/trending || exit 1
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 2
|
||||
logging:
|
||||
options:
|
||||
max-size: 1G
|
||||
max-file: 4
|
||||
depends_on:
|
||||
- invidious-postgresql
|
||||
networks:
|
||||
- invidious
|
||||
invidious-postgresql:
|
||||
image: ${REGISTRY}/postgres
|
||||
container_name: invidious-postgresql
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./sql:/var/lib/postgresql/data
|
||||
- ./config/sql:/config/sql
|
||||
- ./docker/init-invidious-postgresql.sh:/docker-entrypoint-initdb.d/init-invidious-postgresql.sh
|
||||
environment:
|
||||
POSTGRES_DB: ${INVIDIOUS_DBNAME:-invidious}
|
||||
POSTGRES_USER: ${INVIDIOUS_DBUSER:-invidious}
|
||||
POSTGRES_PASSWORD: ${INVIDIOUS_DBPASS:-invidious}
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
|
||||
networks:
|
||||
- invidious
|
||||
|
||||
networks:
|
||||
invidious:
|
||||
external: false
|
||||
Loading…
Add table
Add a link
Reference in a new issue