app-store/apps/invidious/docker-compose.arm64.yml

54 lines
1.6 KiB
YAML
Raw Normal View History

2022-07-28 17:46:12 +00:00
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
2022-07-28 17:46:12 +00:00
networks:
- tipi_main_network
2022-09-07 19:18:41 +00:00
labels:
traefik.enable: ${APP_EXPOSED}
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
traefik.http.services.invidious.loadbalancer.server.port: 3000
2022-07-28 17:46:12 +00:00
invidious-db:
container_name: invidious-db
image: postgres:14
2022-07-28 17:46:12 +00:00
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