mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-25 20:02:47 +00:00
perf: Add Redis Health Check (#4707)
* Update docker.md Fix a document error * Update docker.md * Update docker-compose-milvus.yml 1.Redis Health Check * Update docker-compose-pgvector.yml 1.Redis Health Check * Update docker-compose-zilliz.yml 1.Redis Health Check
This commit is contained in:
parent
d2a32c363d
commit
14ad6aef41
|
|
@ -120,6 +120,12 @@ services:
|
|||
restart: always
|
||||
command: |
|
||||
redis-server --requirepass mypassword --loglevel warning --maxclients 10000 --appendonly yes --save 60 10 --maxmemory 4gb --maxmemory-policy noeviction
|
||||
healthcheck:
|
||||
test: [ "CMD", "redis-cli", "-a", "mypassword", "ping" ]
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
volumes:
|
||||
- ./redis/data:/data
|
||||
|
||||
|
|
|
|||
|
|
@ -79,6 +79,12 @@ services:
|
|||
restart: always
|
||||
command: |
|
||||
redis-server --requirepass mypassword --loglevel warning --maxclients 10000 --appendonly yes --save 60 10 --maxmemory 4gb --maxmemory-policy noeviction
|
||||
healthcheck:
|
||||
test: [ "CMD", "redis-cli", "-a", "mypassword", "ping" ]
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
volumes:
|
||||
- ./redis/data:/data
|
||||
|
||||
|
|
|
|||
|
|
@ -61,6 +61,12 @@ services:
|
|||
restart: always
|
||||
command: |
|
||||
redis-server --requirepass mypassword --loglevel warning --maxclients 10000 --appendonly yes --save 60 10 --maxmemory 4gb --maxmemory-policy noeviction
|
||||
healthcheck:
|
||||
test: [ "CMD", "redis-cli", "-a", "mypassword", "ping" ]
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
volumes:
|
||||
- ./redis/data:/data
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue