Use Docker Valkey instead of passing a socket
All checks were successful
Invidious CI / build (push) Successful in 4m19s
All checks were successful
Invidious CI / build (push) Successful in 4m19s
This commit is contained in:
parent
64ccecae64
commit
9f7712a62e
1 changed files with 30 additions and 11 deletions
|
@ -1,6 +1,11 @@
|
|||
# Docker compose file for inv.nadeko.net
|
||||
|
||||
services:
|
||||
valkey:
|
||||
image: valkey/valkey:7.2-alpine
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- "./valkey:/data"
|
||||
|
||||
invidious-refresher:
|
||||
image: git.nadeko.net/fijxu/invidious:latest
|
||||
|
@ -9,29 +14,43 @@ services:
|
|||
- ./config/config-refresher.yml:/etc/invidious/config.yml:ro
|
||||
- ./logs:/var/log/invidious:rw
|
||||
- /var/run/postgresql/.s.PGSQL.5432:/var/run/postgresql/.s.PGSQL.5432:rw
|
||||
- /var/run/valkey/valkey.sock:/var/run/redis/redis.sock:rw
|
||||
environment:
|
||||
INVIDIOUS_CONFIG_FILE: /etc/invidious/config.yml
|
||||
depends_on:
|
||||
- valkey
|
||||
healthcheck:
|
||||
test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/trending || exit 1
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 2
|
||||
|
||||
|
||||
invidious:
|
||||
image: git.nadeko.net/fijxu/invidious:latest
|
||||
restart: unless-stopped
|
||||
deploy:
|
||||
deploy:
|
||||
replicas: 8
|
||||
volumes:
|
||||
- ./config/config.yml:/etc/invidious/config.yml:ro
|
||||
- ./logs:/var/log/invidious:rw
|
||||
- /var/run/postgresql/.s.PGSQL.5432:/var/run/postgresql/.s.PGSQL.5432:rw
|
||||
- /var/run/valkey/valkey.sock:/var/run/redis/redis.sock:rw
|
||||
environment:
|
||||
INVIDIOUS_CONFIG_FILE: /etc/invidious/config.yml
|
||||
depends_on:
|
||||
- valkey
|
||||
healthcheck:
|
||||
test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/trending || exit 1
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 2
|
||||
|
||||
|
||||
invidious-nginx:
|
||||
image: nginx:latest
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
depends_on:
|
||||
- invidious
|
||||
ports:
|
||||
- "127.0.0.1:10011:3000"
|
||||
image: nginx:latest
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
depends_on:
|
||||
- invidious
|
||||
ports:
|
||||
- "127.0.0.1:10011:3000"
|
||||
|
|
Loading…
Reference in a new issue