mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-04-04 15:56:16 +02:00
Merge a7381a578c into 8dcbf7dbcf
This commit is contained in:
commit
b5bff0efd0
|
|
@ -41,14 +41,14 @@ services:
|
|||
- DB_PASSWORD=replaceme
|
||||
- DB_NAME=nomad
|
||||
- DB_SSL=false
|
||||
- REDIS_HOST=redis
|
||||
- REDIS_HOST=valkey
|
||||
# If you change the Redis port, make sure to update this accordingly
|
||||
- REDIS_PORT=6379
|
||||
- DISABLE_COMPRESSION=false # Most reverse proxies (Nginx, Caddy, etc.) will skip compression if the response is already compressed so this is usally a win all around, but if this causes issues with your setup you can set it to "true" to disable gzip in the admin server
|
||||
depends_on:
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
valkey:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080/api/health"]
|
||||
|
|
@ -84,14 +84,14 @@ services:
|
|||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
container_name: nomad_redis
|
||||
valkey:
|
||||
image: valkey/valkey:8-alpine
|
||||
container_name: nomad_valkey
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /opt/project-nomad/redis:/data # Persist Redis data on the host. This path can be changed if needed, just make sure it's writable by the container. Host persistence is important for Redis to ensure your data isn't lost when the container is removed or updated.
|
||||
- /opt/project-nomad/valkey:/data # Persist Redis data on the host. This path can be changed if needed, just make sure it's writable by the container. Host persistence is important for Redis to ensure your data isn't lost when the container is removed or updated.
|
||||
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