mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-03-28 11:39:26 +01:00
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:
parent
ed0b0f76ec
commit
5b42413d52
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user