111 lines
3.1 KiB
YAML
111 lines
3.1 KiB
YAML
services:
|
|
# 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.
|
|
|
|
valkey:
|
|
image: valkey/valkey:7.2-alpine
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./valkey.conf:/usr/local/etc/valkey/valkey.conf
|
|
command: "valkey-server /usr/local/etc/valkey/valkey.conf"
|
|
networks:
|
|
- invidious
|
|
|
|
valkey-vpn:
|
|
image: valkey/valkey:7.2-alpine
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./valkey.conf:/usr/local/etc/valkey/valkey.conf
|
|
command: "valkey-server /usr/local/etc/valkey/valkey.conf"
|
|
networks:
|
|
- gluetun_network
|
|
|
|
valkey-vpn-2:
|
|
image: valkey/valkey:7.2-alpine
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./valkey.conf:/usr/local/etc/valkey/valkey.conf
|
|
command: "valkey-server /usr/local/etc/valkey/valkey.conf"
|
|
networks:
|
|
- gluetun_network_2
|
|
|
|
valkey-external:
|
|
image: valkey/valkey:7.2-alpine
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./valkey.conf:/usr/local/etc/valkey/valkey.conf
|
|
command: "valkey-server /usr/local/etc/valkey/valkey.conf"
|
|
networks:
|
|
- invidious-external
|
|
|
|
# valkey-with-companion:
|
|
# image: valkey/valkey:7.2-alpine
|
|
# restart: unless-stopped
|
|
# volumes:
|
|
# - ./valkey.conf:/usr/local/etc/valkey/valkey.conf
|
|
# command: "valkey-server /usr/local/etc/valkey/valkey.conf"
|
|
# networks:
|
|
# - invidious-with-companion
|
|
|
|
# # 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
|
|
#
|
|
# # 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:
|
|
# - gluetun_network
|
|
#
|
|
# # INVIDIOUS VALKEY METRICS
|
|
# invidious-redis-exporter-vpn-2:
|
|
# image: oliver006/redis_exporter
|
|
# restart: unless-stopped
|
|
# ports:
|
|
# - "127.0.0.1:9123:9121"
|
|
# command: "--redis.addr=redis://valkey-vpn-2:6379"
|
|
# networks:
|
|
# - gluetun_network_2
|
|
#
|
|
# # INVIDIOUS VALKEY METRICS
|
|
# invidious-redis-exporter-external:
|
|
# image: oliver006/redis_exporter
|
|
# restart: unless-stopped
|
|
# ports:
|
|
# - "127.0.0.1:9124:9121"
|
|
# command: "--redis.addr=redis://valkey-external:6379"
|
|
# networks:
|
|
# - invidious-external
|
|
|
|
networks:
|
|
invidious:
|
|
external: true
|
|
gluetun_network:
|
|
external: true
|
|
gluetun_network_2:
|
|
external: true
|
|
invidious-external:
|
|
external: true
|
|
invidious-with-companion:
|
|
external: true
|
|
|
|
# volumes:
|
|
# invidious-valkey:
|
|
# invidious-valkey-vpn:
|
|
# invidious-valkey-vpn-2:
|
|
# invidious-external:
|
|
# invidious-with-companion:
|
|
|