Update valkey configuration

This commit is contained in:
root 2024-11-11 11:44:02 -03:00
parent 0483a238a4
commit ec623beee9
2 changed files with 65 additions and 34 deletions

View file

@ -9,7 +9,6 @@ services:
image: valkey/valkey:7.2-alpine image: valkey/valkey:7.2-alpine
restart: unless-stopped restart: unless-stopped
volumes: volumes:
# - invidious-valkey:/data
- ./valkey.conf:/usr/local/etc/valkey/valkey.conf - ./valkey.conf:/usr/local/etc/valkey/valkey.conf
command: "valkey-server /usr/local/etc/valkey/valkey.conf" command: "valkey-server /usr/local/etc/valkey/valkey.conf"
networks: networks:
@ -19,7 +18,6 @@ services:
image: valkey/valkey:7.2-alpine image: valkey/valkey:7.2-alpine
restart: unless-stopped restart: unless-stopped
volumes: volumes:
# - invidious-valkey-vpn:/data
- ./valkey.conf:/usr/local/etc/valkey/valkey.conf - ./valkey.conf:/usr/local/etc/valkey/valkey.conf
command: "valkey-server /usr/local/etc/valkey/valkey.conf" command: "valkey-server /usr/local/etc/valkey/valkey.conf"
networks: networks:
@ -29,41 +27,68 @@ services:
image: valkey/valkey:7.2-alpine image: valkey/valkey:7.2-alpine
restart: unless-stopped restart: unless-stopped
volumes: volumes:
# - invidious-valkey-vpn-2:/data
- ./valkey.conf:/usr/local/etc/valkey/valkey.conf - ./valkey.conf:/usr/local/etc/valkey/valkey.conf
command: "valkey-server /usr/local/etc/valkey/valkey.conf" command: "valkey-server /usr/local/etc/valkey/valkey.conf"
networks: networks:
- gluetun_network_2 - gluetun_network_2
# INVIDIOUS VALKEY METRICS valkey-external:
invidious-redis-exporter: image: valkey/valkey:7.2-alpine
image: oliver006/redis_exporter
restart: unless-stopped restart: unless-stopped
ports: volumes:
- "127.0.0.1:9121:9121" - ./valkey.conf:/usr/local/etc/valkey/valkey.conf
command: "--redis.addr=redis://valkey:6379" command: "valkey-server /usr/local/etc/valkey/valkey.conf"
networks: networks:
- invidious - invidious-external
# INVIDIOUS VALKEY METRICS # valkey-with-companion:
invidious-redis-exporter-vpn: # image: valkey/valkey:7.2-alpine
image: oliver006/redis_exporter # restart: unless-stopped
restart: unless-stopped # volumes:
ports: # - ./valkey.conf:/usr/local/etc/valkey/valkey.conf
- "127.0.0.1:9122:9121" # command: "valkey-server /usr/local/etc/valkey/valkey.conf"
command: "--redis.addr=redis://valkey-vpn:6379" # networks:
networks: # - invidious-with-companion
- gluetun_network
# INVIDIOUS VALKEY METRICS # # INVIDIOUS VALKEY METRICS
invidious-redis-exporter-vpn-2: # invidious-redis-exporter:
image: oliver006/redis_exporter # image: oliver006/redis_exporter
restart: unless-stopped # restart: unless-stopped
ports: # ports:
- "127.0.0.1:9123:9121" # - "127.0.0.1:9121:9121"
command: "--redis.addr=redis://valkey-vpn-2:6379" # command: "--redis.addr=redis://valkey:6379"
networks: # networks:
- gluetun_network_2 # - 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: networks:
invidious: invidious:
@ -71,10 +96,16 @@ networks:
gluetun_network: gluetun_network:
external: true external: true
gluetun_network_2: gluetun_network_2:
external: true
invidious-external:
external: true
invidious-with-companion:
external: true external: true
volumes: # volumes:
invidious-valkey: # invidious-valkey:
invidious-valkey-vpn: # invidious-valkey-vpn:
invidious-valkey-vpn-2: # invidious-valkey-vpn-2:
# invidious-external:
# invidious-with-companion:

View file

@ -1,5 +1,5 @@
maxmemory 1024mb maxmemory 796mb
maxmemory-policy volatile-ttl maxmemory-policy volatile-lfu
# Disable AOF # Disable AOF
appendonly no appendonly no