diff --git a/docker/docker-compose-CN-oc9.yml b/docker/docker-compose-CN-oc9.yml index 3a0b786ba..501b2044f 100644 --- a/docker/docker-compose-CN-oc9.yml +++ b/docker/docker-compose-CN-oc9.yml @@ -23,7 +23,7 @@ services: env_file: .env networks: - ragflow - restart: on-failure + restart: unless-stopped # 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. extra_hosts: @@ -48,7 +48,7 @@ services: env_file: .env networks: - ragflow - restart: on-failure + restart: unless-stopped # 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. extra_hosts: diff --git a/docker/docker-compose-base.yml b/docker/docker-compose-base.yml index 433dc03d0..0a3f0b787 100644 --- a/docker/docker-compose-base.yml +++ b/docker/docker-compose-base.yml @@ -31,7 +31,7 @@ services: retries: 120 networks: - ragflow - restart: on-failure + restart: unless-stopped opensearch01: profiles: @@ -67,7 +67,7 @@ services: retries: 120 networks: - ragflow - restart: on-failure + restart: unless-stopped infinity: profiles: @@ -94,7 +94,7 @@ services: interval: 10s timeout: 10s retries: 120 - restart: on-failure + restart: unless-stopped oceanbase: profiles: @@ -119,7 +119,7 @@ services: timeout: 10s networks: - ragflow - restart: on-failure + restart: unless-stopped sandbox-executor-manager: profiles: @@ -147,7 +147,7 @@ services: interval: 10s timeout: 10s retries: 120 - restart: on-failure + restart: unless-stopped mysql: # mysql:5.7 linux/arm64 image is unavailable. @@ -175,7 +175,7 @@ services: interval: 10s timeout: 10s retries: 120 - restart: on-failure + restart: unless-stopped minio: image: quay.io/minio/minio:RELEASE.2025-06-13T11-33-47Z @@ -191,7 +191,7 @@ services: - minio_data:/data networks: - ragflow - restart: on-failure + restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"] interval: 10s @@ -209,7 +209,7 @@ services: - redis_data:/data networks: - ragflow - restart: on-failure + restart: unless-stopped healthcheck: test: ["CMD", "redis-cli", "-a", "${REDIS_PASSWORD}", "ping"] interval: 10s @@ -228,7 +228,7 @@ services: networks: - ragflow command: ["--model-id", "/data/${TEI_MODEL}", "--auto-truncate"] - restart: on-failure + restart: unless-stopped tei-gpu: @@ -249,7 +249,7 @@ services: - driver: nvidia count: all capabilities: [gpu] - restart: on-failure + restart: unless-stopped kibana: @@ -271,7 +271,7 @@ services: retries: 120 networks: - ragflow - restart: on-failure + restart: unless-stopped volumes: diff --git a/docker/docker-compose-macos.yml b/docker/docker-compose-macos.yml index 2618919f6..b667108fc 100644 --- a/docker/docker-compose-macos.yml +++ b/docker/docker-compose-macos.yml @@ -22,7 +22,7 @@ services: env_file: .env networks: - ragflow - restart: on-failure + restart: unless-stopped # 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. extra_hosts: @@ -39,7 +39,7 @@ services: # entrypoint: "/ragflow/entrypoint_task_executor.sh 1 3" # networks: # - ragflow - # restart: on-failure + # restart: unless-stopped # # 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. # extra_hosts: diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index ce9823a69..adb337511 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -45,7 +45,7 @@ services: env_file: .env networks: - ragflow - restart: on-failure + restart: unless-stopped # 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. extra_hosts: @@ -94,7 +94,7 @@ services: env_file: .env networks: - ragflow - restart: on-failure + restart: unless-stopped # 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. extra_hosts: @@ -120,7 +120,7 @@ services: # entrypoint: "/ragflow/entrypoint_task_executor.sh 1 3" # networks: # - ragflow - # restart: on-failure + # restart: unless-stopped # # 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. # extra_hosts: