# 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