mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-23 08:56:42 +08:00
Go: fix nats and go command (#16828)
### Summary 1. update docker compose file to start NATS healthy 2. Add two commands ``` RAGFlow(admin)> live; SUCCESS RAGFlow(admin)> health; +---------------+-------+ | field | value | +---------------+-------+ | storage | ok | | message_queue | ok | | status | ok | | db | ok | | redis | ok | | doc_engine | ok | +---------------+-------+ ``` --------- Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -255,7 +255,7 @@ services:
|
||||
- ragflow-go
|
||||
image: nats:2.14.2
|
||||
ports:
|
||||
- ${NATS_PORT}:4222
|
||||
- ${NATS_PORT:-4222}:4222
|
||||
- "8222:8222"
|
||||
volumes:
|
||||
- nats_data:/data
|
||||
@@ -265,10 +265,10 @@ services:
|
||||
- ragflow
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "nc", "-z", "localhost", "${NATS_PORT}"]
|
||||
test: ["CMD", "nats-server", "--health-check"]
|
||||
interval: 10s
|
||||
timeout: 10s
|
||||
retries: 120
|
||||
retries: 30
|
||||
|
||||
tei-cpu:
|
||||
profiles:
|
||||
|
||||
Reference in New Issue
Block a user