Skip to content

Commit f635860

Browse files
committed
Change docker container restart policy
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
1 parent e3f40db commit f635860

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

docker/docker-compose-CN-oc9.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ services:
2323
env_file: .env
2424
networks:
2525
- ragflow
26-
restart: on-failure
26+
restart: unless-stopped
2727
# https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
2828
# 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.
2929
extra_hosts:
@@ -48,7 +48,7 @@ services:
4848
env_file: .env
4949
networks:
5050
- ragflow
51-
restart: on-failure
51+
restart: unless-stopped
5252
# https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
5353
# 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.
5454
extra_hosts:

docker/docker-compose-base.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ services:
3131
retries: 120
3232
networks:
3333
- ragflow
34-
restart: on-failure
34+
restart: unless-stopped
3535

3636
opensearch01:
3737
profiles:
@@ -67,7 +67,7 @@ services:
6767
retries: 120
6868
networks:
6969
- ragflow
70-
restart: on-failure
70+
restart: unless-stopped
7171

7272
infinity:
7373
profiles:
@@ -94,7 +94,7 @@ services:
9494
interval: 10s
9595
timeout: 10s
9696
retries: 120
97-
restart: on-failure
97+
restart: unless-stopped
9898

9999
oceanbase:
100100
profiles:
@@ -119,7 +119,7 @@ services:
119119
timeout: 10s
120120
networks:
121121
- ragflow
122-
restart: on-failure
122+
restart: unless-stopped
123123

124124
sandbox-executor-manager:
125125
profiles:
@@ -147,7 +147,7 @@ services:
147147
interval: 10s
148148
timeout: 10s
149149
retries: 120
150-
restart: on-failure
150+
restart: unless-stopped
151151

152152
mysql:
153153
# mysql:5.7 linux/arm64 image is unavailable.
@@ -175,7 +175,7 @@ services:
175175
interval: 10s
176176
timeout: 10s
177177
retries: 120
178-
restart: on-failure
178+
restart: unless-stopped
179179

180180
minio:
181181
image: quay.io/minio/minio:RELEASE.2025-06-13T11-33-47Z
@@ -191,7 +191,7 @@ services:
191191
- minio_data:/data
192192
networks:
193193
- ragflow
194-
restart: on-failure
194+
restart: unless-stopped
195195
healthcheck:
196196
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
197197
interval: 10s
@@ -209,7 +209,7 @@ services:
209209
- redis_data:/data
210210
networks:
211211
- ragflow
212-
restart: on-failure
212+
restart: unless-stopped
213213
healthcheck:
214214
test: ["CMD", "redis-cli", "-a", "${REDIS_PASSWORD}", "ping"]
215215
interval: 10s
@@ -228,7 +228,7 @@ services:
228228
networks:
229229
- ragflow
230230
command: ["--model-id", "/data/${TEI_MODEL}", "--auto-truncate"]
231-
restart: on-failure
231+
restart: unless-stopped
232232

233233

234234
tei-gpu:
@@ -249,7 +249,7 @@ services:
249249
- driver: nvidia
250250
count: all
251251
capabilities: [gpu]
252-
restart: on-failure
252+
restart: unless-stopped
253253

254254

255255
kibana:
@@ -271,7 +271,7 @@ services:
271271
retries: 120
272272
networks:
273273
- ragflow
274-
restart: on-failure
274+
restart: unless-stopped
275275

276276

277277
volumes:

docker/docker-compose-macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ services:
2222
env_file: .env
2323
networks:
2424
- ragflow
25-
restart: on-failure
25+
restart: unless-stopped
2626
# https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
2727
# 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.
2828
extra_hosts:
@@ -39,7 +39,7 @@ services:
3939
# entrypoint: "/ragflow/entrypoint_task_executor.sh 1 3"
4040
# networks:
4141
# - ragflow
42-
# restart: on-failure
42+
# restart: unless-stopped
4343
# # https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
4444
# # 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.
4545
# extra_hosts:

docker/docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ services:
4545
env_file: .env
4646
networks:
4747
- ragflow
48-
restart: on-failure
48+
restart: unless-stopped
4949
# https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
5050
# 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.
5151
extra_hosts:
@@ -94,7 +94,7 @@ services:
9494
env_file: .env
9595
networks:
9696
- ragflow
97-
restart: on-failure
97+
restart: unless-stopped
9898
# https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
9999
# 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.
100100
extra_hosts:
@@ -120,7 +120,7 @@ services:
120120
# entrypoint: "/ragflow/entrypoint_task_executor.sh 1 3"
121121
# networks:
122122
# - ragflow
123-
# restart: on-failure
123+
# restart: unless-stopped
124124
# # https://docs.docker.com/engine/daemon/prometheus/#create-a-prometheus-configuration
125125
# # 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.
126126
# extra_hosts:

0 commit comments

Comments
 (0)