Change docker container restart policy (#11695)

### What problem does this PR solve?

Change the restart policy from 'on-failure' to 'unless-stopped'.

### Type of change

- [x] Refactoring

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2025-12-04 15:18:13 +08:00
committed by GitHub
parent ca4a0ee1b2
commit e7022db9a4
4 changed files with 18 additions and 18 deletions

View File

@ -23,7 +23,7 @@ services:
env_file: .env env_file: .env
networks: networks:
- ragflow - ragflow
restart: on-failure restart: unless-stopped
# https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration # https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
# If you're using Docker Desktop, the --add-host flag is optional. This flag makes sure that the host's internal IP gets exposed to the Prometheus container. # If you're using Docker Desktop, the --add-host flag is optional. This flag makes sure that the host's internal IP gets exposed to the Prometheus container.
extra_hosts: extra_hosts:
@ -48,7 +48,7 @@ services:
env_file: .env env_file: .env
networks: networks:
- ragflow - ragflow
restart: on-failure restart: unless-stopped
# https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration # https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
# If you're using Docker Desktop, the --add-host flag is optional. This flag makes sure that the host's internal IP gets exposed to the Prometheus container. # If you're using Docker Desktop, the --add-host flag is optional. This flag makes sure that the host's internal IP gets exposed to the Prometheus container.
extra_hosts: extra_hosts:

View File

@ -31,7 +31,7 @@ services:
retries: 120 retries: 120
networks: networks:
- ragflow - ragflow
restart: on-failure restart: unless-stopped
opensearch01: opensearch01:
profiles: profiles:
@ -67,7 +67,7 @@ services:
retries: 120 retries: 120
networks: networks:
- ragflow - ragflow
restart: on-failure restart: unless-stopped
infinity: infinity:
profiles: profiles:
@ -94,7 +94,7 @@ services:
interval: 10s interval: 10s
timeout: 10s timeout: 10s
retries: 120 retries: 120
restart: on-failure restart: unless-stopped
oceanbase: oceanbase:
profiles: profiles:
@ -119,7 +119,7 @@ services:
timeout: 10s timeout: 10s
networks: networks:
- ragflow - ragflow
restart: on-failure restart: unless-stopped
sandbox-executor-manager: sandbox-executor-manager:
profiles: profiles:
@ -147,7 +147,7 @@ services:
interval: 10s interval: 10s
timeout: 10s timeout: 10s
retries: 120 retries: 120
restart: on-failure restart: unless-stopped
mysql: mysql:
# mysql:5.7 linux/arm64 image is unavailable. # mysql:5.7 linux/arm64 image is unavailable.
@ -175,7 +175,7 @@ services:
interval: 10s interval: 10s
timeout: 10s timeout: 10s
retries: 120 retries: 120
restart: on-failure restart: unless-stopped
minio: minio:
image: quay.io/minio/minio:RELEASE.2025-06-13T11-33-47Z image: quay.io/minio/minio:RELEASE.2025-06-13T11-33-47Z
@ -191,7 +191,7 @@ services:
- minio_data:/data - minio_data:/data
networks: networks:
- ragflow - ragflow
restart: on-failure restart: unless-stopped
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"] test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 10s interval: 10s
@ -209,7 +209,7 @@ services:
- redis_data:/data - redis_data:/data
networks: networks:
- ragflow - ragflow
restart: on-failure restart: unless-stopped
healthcheck: healthcheck:
test: ["CMD", "redis-cli", "-a", "${REDIS_PASSWORD}", "ping"] test: ["CMD", "redis-cli", "-a", "${REDIS_PASSWORD}", "ping"]
interval: 10s interval: 10s
@ -228,7 +228,7 @@ services:
networks: networks:
- ragflow - ragflow
command: ["--model-id", "/data/${TEI_MODEL}", "--auto-truncate"] command: ["--model-id", "/data/${TEI_MODEL}", "--auto-truncate"]
restart: on-failure restart: unless-stopped
tei-gpu: tei-gpu:
@ -249,7 +249,7 @@ services:
- driver: nvidia - driver: nvidia
count: all count: all
capabilities: [gpu] capabilities: [gpu]
restart: on-failure restart: unless-stopped
kibana: kibana:
@ -271,7 +271,7 @@ services:
retries: 120 retries: 120
networks: networks:
- ragflow - ragflow
restart: on-failure restart: unless-stopped
volumes: volumes:

View File

@ -22,7 +22,7 @@ services:
env_file: .env env_file: .env
networks: networks:
- ragflow - ragflow
restart: on-failure restart: unless-stopped
# https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration # https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
# If you're using Docker Desktop, the --add-host flag is optional. This flag makes sure that the host's internal IP gets exposed to the Prometheus container. # If you're using Docker Desktop, the --add-host flag is optional. This flag makes sure that the host's internal IP gets exposed to the Prometheus container.
extra_hosts: extra_hosts:
@ -39,7 +39,7 @@ services:
# entrypoint: "/ragflow/entrypoint_task_executor.sh 1 3" # entrypoint: "/ragflow/entrypoint_task_executor.sh 1 3"
# networks: # networks:
# - ragflow # - ragflow
# restart: on-failure # restart: unless-stopped
# # https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration # # https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
# # If you're using Docker Desktop, the --add-host flag is optional. This flag makes sure that the host's internal IP gets exposed to the Prometheus container. # # If you're using Docker Desktop, the --add-host flag is optional. This flag makes sure that the host's internal IP gets exposed to the Prometheus container.
# extra_hosts: # extra_hosts:

View File

@ -45,7 +45,7 @@ services:
env_file: .env env_file: .env
networks: networks:
- ragflow - ragflow
restart: on-failure restart: unless-stopped
# https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration # https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
# If you use Docker Desktop, the --add-host flag is optional. This flag ensures that the host's internal IP is exposed to the Prometheus container. # If you use Docker Desktop, the --add-host flag is optional. This flag ensures that the host's internal IP is exposed to the Prometheus container.
extra_hosts: extra_hosts:
@ -94,7 +94,7 @@ services:
env_file: .env env_file: .env
networks: networks:
- ragflow - ragflow
restart: on-failure restart: unless-stopped
# https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration # https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
# If you use Docker Desktop, the --add-host flag is optional. This flag ensures that the host's internal IP is exposed to the Prometheus container. # If you use Docker Desktop, the --add-host flag is optional. This flag ensures that the host's internal IP is exposed to the Prometheus container.
extra_hosts: extra_hosts:
@ -120,7 +120,7 @@ services:
# entrypoint: "/ragflow/entrypoint_task_executor.sh 1 3" # entrypoint: "/ragflow/entrypoint_task_executor.sh 1 3"
# networks: # networks:
# - ragflow # - ragflow
# restart: on-failure # restart: unless-stopped
# # https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration # # https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
# # If you're using Docker Desktop, the --add-host flag is optional. This flag makes sure that the host's internal IP gets exposed to the Prometheus container. # # If you're using Docker Desktop, the --add-host flag is optional. This flag makes sure that the host's internal IP gets exposed to the Prometheus container.
# extra_hosts: # extra_hosts: