update
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Sthope 2022-08-06 23:26:05 +02:00
parent 1171073e34
commit 13ba9ccb8e
2 changed files with 72 additions and 1 deletions

View File

@ -0,0 +1,71 @@
Portainer Stack:
```yaml
---
version: "3.8"
services:
invidious:
image: quay.io/invidious/invidious:${TAG-latest}
container_name: invidious
restart: ${RST-unless-stopped}
network_mode: ${NET_MODE-bridge}
ports:
- ${PORT_INVIDIOUS}:3000
environment:
INVIDIOUS_CONFIG: |
db:
dbname: ${DB_NAME-invidious}
user: ${DB_USER-kemal}
password: ${DB_PWD-kemal}
host: invidious-db
port: 5432
check_tables: true
force_resolve: ipv4
dark_mode: false
statistics_enabled: true
registration_enabled: false
captcha_enabled: false
admins: ["sthope"]
default_user_preferences:
locale: en-US
region: PT
healthcheck:
test: wget -nv --tries=1 --spider http://127.0.0.1:${PORT_INVIDIOUS-3000}/api/v1/comments/jNQXAC9IVRw || exit 1
interval: 30s
timeout: 5s
retries: 2
depends_on:
- invidious-db
invidious-db:
image: docker.io/library/postgres:${TAG-latest}
container_name: invidious-db
restart: ${RST-unless-stopped}
network_mode: ${NET_MODE-bridge}
volumes:
- ${VOLUME_DB_DATA}:/var/lib/postgresql/data
- ${VOLUME_DB_SQL}:/config/sql
- ${VOLUME_DB_SCRIPT}:/docker-entrypoint-initdb.d/init-invidious-db.sh
environment:
POSTGRES_DB: ${DB_NAME-invidious}
POSTGRES_USER: ${DB_USER-kemal}
POSTGRES_PASSWORD: ${DB_PWD-kemal}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
```
Environments:
```
TAG=latest
RST=unless-stopped
PORT_INVIDIOUS=
VOLUME_DB_DATA=
VOLUME_DB_SQL=
VOLUME_DB_SCRIPT=
DB_NAME=invidious
DB_USER=kemal
DB_PWD=kemal
```

View File

@ -19,7 +19,7 @@ services:
- com.centurylinklabs.watchtower.enable=${AutoUpdate-true}
piped-postgres:
image: 1337kavin/piped:${TAG-latest}
image: postgres:13-alpine
container_name: piped-postgres
network_mode: ${NET_MODE-bridge}
volumes: