mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-04-04 07:46:16 +02: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_PASSWORD=replaceme
|
||||||
- DB_NAME=nomad
|
- DB_NAME=nomad
|
||||||
- DB_SSL=false
|
- DB_SSL=false
|
||||||
- REDIS_HOST=redis
|
- REDIS_HOST=valkey
|
||||||
- REDIS_PORT=6379
|
- REDIS_PORT=6379
|
||||||
depends_on:
|
depends_on:
|
||||||
mysql:
|
mysql:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
redis:
|
valkey:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
entrypoint: ["/usr/local/bin/entrypoint.sh"]
|
entrypoint: ["/usr/local/bin/entrypoint.sh"]
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
|
@ -71,16 +71,16 @@ services:
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
redis:
|
valkey:
|
||||||
image: redis:7-alpine
|
image: valkey/valkey:8-alpine
|
||||||
container_name: nomad_redis
|
container_name: nomad_valkey
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "6379:6379"
|
- "6379:6379"
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/project-nomad/redis:/data
|
- /opt/project-nomad/valkey:/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "redis-cli", "ping"]
|
test: ["CMD", "valkey-cli", "ping"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ perform_update() {
|
||||||
log "Recreating containers individually (excluding updater)..."
|
log "Recreating containers individually (excluding updater)..."
|
||||||
|
|
||||||
# List of services to update (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 current_progress=65
|
||||||
local progress_per_service=8 # (95 - 65) / 4 services ≈ 8% per service
|
local progress_per_service=8 # (95 - 65) / 4 services ≈ 8% per service
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user