docker-compose-configs/invidious/valkey-invidious/docker-compose.yml
2024-12-24 21:32:31 -03:00

34 lines
697 B
YAML

# https://docs.docker.com/reference/compose-file/extension/
x-common: &common
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
networks:
- invidious
valkey2:
<<: *common
networks:
- invidious2
valkey3:
<<: *common
networks:
- invidious3
valkey4:
<<: *common
networks:
- invidious4