docker-compose-configs/invidious/valkey-invidious/docker-compose.yml

133 lines
3.3 KiB
YAML

#https://docs.docker.com/reference/compose-file/fragments/
x-common-config: &common-config
image: valkey/valkey:7.2-alpine
hostname: valkey
restart: unless-stopped
volumes:
- ./valkey.conf:/usr/local/etc/valkey/valkey.conf
command: "valkey-server /usr/local/etc/valkey/valkey.conf"
services:
# Cache needs to be separated since the cache data is bound to the IP
# address of the backend. Is not possible to mix cache between backends.
valkey:
<<: *common-config
networks:
- invidious
valkey2:
<<: *common-config
networks:
- invidious-2
valkey3:
<<: *common-config
networks:
- invidious-3
valkey4:
<<: *common-config
networks:
- invidious-4
# valkey-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:
# - invidious-2
#
# valkey-3:
# 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-3
#
# valkey-4:
# 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-4
#
# valkey-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-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
invidious-2:
external: true
invidious-3:
external: true
invidious-4:
external: true
# gluetun_network:
# external: true
# gluetun_network_2:
# external: true
# invidious-companion:
# external: true
# volumes:
# invidious-valkey:
# invidious-valkey-vpn:
# invidious-valkey-vpn-2:
# invidious-external:
# invidious-with-companion: