mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-22 12:20:34 +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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user