Use Docker Valkey instead of passing a socket
This commit is contained in:
parent
d50990ea15
commit
762fa5214d
1 changed files with 30 additions and 11 deletions
|
@ -1,6 +1,11 @@
|
||||||
# Docker compose file for inv.nadeko.net
|
# Docker compose file for inv.nadeko.net
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
valkey:
|
||||||
|
image: valkey/valkey:7.2-alpine
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- "./valkey:/data"
|
||||||
|
|
||||||
invidious-refresher:
|
invidious-refresher:
|
||||||
image: git.nadeko.net/fijxu/invidious:latest
|
image: git.nadeko.net/fijxu/invidious:latest
|
||||||
|
@ -9,9 +14,16 @@ services:
|
||||||
- ./config/config-refresher.yml:/etc/invidious/config.yml:ro
|
- ./config/config-refresher.yml:/etc/invidious/config.yml:ro
|
||||||
- ./logs:/var/log/invidious:rw
|
- ./logs:/var/log/invidious:rw
|
||||||
- /var/run/postgresql/.s.PGSQL.5432:/var/run/postgresql/.s.PGSQL.5432: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:
|
environment:
|
||||||
INVIDIOUS_CONFIG_FILE: /etc/invidious/config.yml
|
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:
|
invidious:
|
||||||
image: git.nadeko.net/fijxu/invidious:latest
|
image: git.nadeko.net/fijxu/invidious:latest
|
||||||
|
@ -22,16 +34,23 @@ services:
|
||||||
- ./config/config.yml:/etc/invidious/config.yml:ro
|
- ./config/config.yml:/etc/invidious/config.yml:ro
|
||||||
- ./logs:/var/log/invidious:rw
|
- ./logs:/var/log/invidious:rw
|
||||||
- /var/run/postgresql/.s.PGSQL.5432:/var/run/postgresql/.s.PGSQL.5432: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:
|
environment:
|
||||||
INVIDIOUS_CONFIG_FILE: /etc/invidious/config.yml
|
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:
|
invidious-nginx:
|
||||||
image: nginx:latest
|
image: nginx:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||||
depends_on:
|
depends_on:
|
||||||
- invidious
|
- invidious
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:10011:3000"
|
- "127.0.0.1:10011:3000"
|
||||||
|
|
Loading…
Reference in a new issue