Replace Redis with Valkey

Redis switched to a non-open-source license in 2024. Valkey is the
Linux Foundation's drop-in replacement with a proper OSS license.

Closes #276
This commit is contained in:
Dylan M. Taylor 2026-03-20 10:24:12 -04:00
parent ed0b0f76ec
commit 5b42413d52
No known key found for this signature in database
GPG Key ID: EC2AAF6D2213BF17
2 changed files with 8 additions and 8 deletions

View File

@ -29,12 +29,12 @@ services:
- DB_PASSWORD=replaceme
- DB_NAME=nomad
- DB_SSL=false
- REDIS_HOST=redis
- REDIS_HOST=valkey
- REDIS_PORT=6379
depends_on:
mysql:
condition: service_healthy
redis:
valkey:
condition: service_healthy
entrypoint: ["/usr/local/bin/entrypoint.sh"]
healthcheck:
@ -71,16 +71,16 @@ services:
interval: 30s
timeout: 10s
retries: 3
redis:
image: redis:7-alpine
container_name: nomad_redis
valkey:
image: valkey/valkey:8-alpine
container_name: nomad_valkey
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- /opt/project-nomad/redis:/data
- /opt/project-nomad/valkey:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
test: ["CMD", "valkey-cli", "ping"]
interval: 30s
timeout: 10s
retries: 3

View File

@ -71,7 +71,7 @@ perform_update() {
log "Recreating containers individually (excluding updater)..."
# List of services to update (excluding updater)
SERVICES_TO_UPDATE="admin mysql redis dozzle"
SERVICES_TO_UPDATE="admin mysql valkey dozzle"
local current_progress=65
local progress_per_service=8 # (95 - 65) / 4 services ≈ 8% per service