app-store/apps/invidious/docker-compose.arm64.yml
Nicolas Meienberger 01c6836796
local domain configs H-L (#678)
* feat(halo): change config to support local domain

* feat(hammond): change config to support local domain

* feat(haven): change config to support local domain

* feat(hedgedoc): change config to support local domain

* feat(hello-world): change config to support local domain

* feat(homarr): change config to support local domain

* feat(homebox): change config to support local domain

* feat(immich): change config to support local domain

* feat(invidious): change config to support local domain

* feat(it-tools): change config to support local domain

* feat(jackett): change config to support local domain

* feat(jellyseerr): change config to support local domain

* feat(joplin): change config to support local domain

* feat(kandboard): change config to support local domain

* feat(kapowarr): change config to support local domain

* feat(kavita): change config to support local domain

* feat(libreddit): change config to support local domain

* feat(librephotos): change config to support local domain

* feat(libretranslate): change config to support local domain

* feat(lidarr): change config to support local domain

* feat(lidarr-deemix): change config to support local domain

* feat(linkstack): change config to support local domain

* feat(lodestone-core): change config to support local domain
2023-06-10 17:29:03 +02:00

71 lines
2.6 KiB
YAML

version: "3.7"
services:
invidious:
container_name: invidious
image: quay.io/invidious/invidious:latest-arm64
restart: unless-stopped
dns:
- ${DNS_IP}
ports:
- "${APP_PORT}:3000"
environment:
INVIDIOUS_CONFIG: |
db:
dbname: invidious
user: tipi
password: tipi
host: invidious-db
port: 5432
check_tables: true
healthcheck:
test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/comments/jNQXAC9IVRw || exit 1
interval: 30s
timeout: 5s
retries: 2
depends_on:
invidious-db:
condition: service_healthy
networks:
- tipi_main_network
labels:
# Main
traefik.enable: true
traefik.http.middlewares.invidious-web-redirect.redirectscheme.scheme: https
traefik.http.services.invidious.loadbalancer.server.port: 3000
# Web
traefik.http.routers.invidious-insecure.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.invidious-insecure.entrypoints: web
traefik.http.routers.invidious-insecure.service: invidious
traefik.http.routers.invidious-insecure.middlewares: invidious-web-redirect
# Websecure
traefik.http.routers.invidious.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.invidious.entrypoints: websecure
traefik.http.routers.invidious.service: invidious
traefik.http.routers.invidious.tls.certresolver: myresolver
# Local domain
traefik.http.routers.invidious-local-insecure.rule: Host(`invidious.${LOCAL_DOMAIN}`)
traefik.http.routers.invidious-local-insecure.entrypoints: web
traefik.http.routers.invidious-local-insecure.service: invidious
traefik.http.routers.invidious-local-insecure.middlewares: invidious-web-redirect
# Local domain secure
traefik.http.routers.invidious-local.rule: Host(`invidious.${LOCAL_DOMAIN}`)
traefik.http.routers.invidious-local.entrypoints: websecure
traefik.http.routers.invidious-local.service: invidious
invidious-db:
container_name: invidious-db
image: postgres:14
restart: unless-stopped
volumes:
- ${APP_DATA_DIR}/data/postgres:/var/lib/postgresql/data
- ${APP_DATA_DIR}/data/init/sql:/config/sql
- ${APP_DATA_DIR}/data/init/init-invidious-db.sh:/docker-entrypoint-initdb.d/init-invidious-db.sh
environment:
POSTGRES_DB: invidious
POSTGRES_USER: tipi
POSTGRES_PASSWORD: tipi
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
networks:
- tipi_main_network