2024-09-14 20:29:49 -03:00
|
|
|
services:
|
2024-09-15 20:19:54 -03:00
|
|
|
# Cache needs to be separated if one backend is using other IP address
|
|
|
|
# Ex: If the user request a video from the Backend 1, the IP address attached
|
|
|
|
# to the video information will be the IP of the Backend 1, so if the user changes
|
|
|
|
# to Backend 2, the returned IP attached to the video information will be from the
|
|
|
|
# IP address of the Backend 1, which will make videoplayback fail.
|
|
|
|
|
2024-09-14 20:29:49 -03:00
|
|
|
valkey:
|
|
|
|
image: valkey/valkey:7.2-alpine
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2024-09-15 20:19:54 -03:00
|
|
|
- invidious-valkey:/data
|
2024-09-14 20:29:49 -03:00
|
|
|
- ./valkey.conf:/usr/local/etc/valkey/valkey.conf
|
|
|
|
command: "valkey-server /usr/local/etc/valkey/valkey.conf"
|
|
|
|
networks:
|
|
|
|
- invidious
|
2024-09-15 20:19:54 -03:00
|
|
|
|
|
|
|
valkey-vpn:
|
|
|
|
image: valkey/valkey:7.2-alpine
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- invidious-valkey-vpn:/data
|
|
|
|
- ./valkey.conf:/usr/local/etc/valkey/valkey.conf
|
|
|
|
command: "valkey-server /usr/local/etc/valkey/valkey.conf"
|
|
|
|
networks:
|
|
|
|
- invidious-vpn
|
2024-09-14 20:29:49 -03:00
|
|
|
- gluetun_network
|
|
|
|
|
|
|
|
# INVIDIOUS VALKEY METRICS
|
|
|
|
invidious-redis-exporter:
|
|
|
|
image: oliver006/redis_exporter
|
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:9121:9121"
|
|
|
|
command: "--redis.addr=redis://valkey:6379"
|
|
|
|
networks:
|
|
|
|
- invidious
|
|
|
|
|
2024-09-15 20:19:54 -03:00
|
|
|
# INVIDIOUS VALKEY METRICS
|
|
|
|
invidious-redis-exporter-vpn:
|
|
|
|
image: oliver006/redis_exporter
|
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:9122:9121"
|
|
|
|
command: "--redis.addr=redis://valkey-vpn:6379"
|
|
|
|
networks:
|
|
|
|
- invidious-vpn
|
|
|
|
- gluetun_network
|
|
|
|
|
2024-09-14 20:29:49 -03:00
|
|
|
networks:
|
|
|
|
invidious-vpn:
|
|
|
|
external: true
|
|
|
|
invidious:
|
|
|
|
external: true
|
|
|
|
gluetun_network:
|
|
|
|
external: true
|
2024-09-15 20:19:54 -03:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
invidious-valkey:
|
|
|
|
invidious-valkey-vpn:
|
|
|
|
|