Add a restart policy on-failure to all containers

This commit is contained in:
Sara Zan 2021-10-27 17:07:36 +02:00 committed by GitHub
parent 171fd7be38
commit fd184d607f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -18,6 +18,7 @@ services:
# - ./rest_api/pipeline:/home/user/rest_api/pipeline
ports:
- 8000:8000
restart: on-failure
environment:
# See rest_api/pipelines.yaml for configurations of Search & Indexing Pipeline.
- DOCUMENTSTORE_PARAMS_HOST=elasticsearch
@ -31,6 +32,7 @@ services:
image: "deepset/elasticsearch-game-of-thrones"
ports:
- 9200:9200
restart: on-failure
environment:
- discovery.type=single-node
ui:
@ -40,6 +42,7 @@ services:
image: "deepset/haystack-streamlit-ui:latest"
ports:
- 8501:8501
restart: on-failure
environment:
- API_ENDPOINT=http://haystack-api:8000
- EVAL_FILE=eval_labels_example.csv

View File

@ -10,6 +10,7 @@ services:
# - ./rest_api/pipeline:/home/user/rest_api/pipeline
ports:
- 8000:8000
restart: on-failure
environment:
# See rest_api/pipelines.yaml for configurations of Search & Indexing Pipeline.
- DOCUMENTSTORE_PARAMS_HOST=elasticsearch
@ -23,6 +24,7 @@ services:
image: "deepset/elasticsearch-game-of-thrones"
ports:
- 9200:9200
restart: on-failure
environment:
- discovery.type=single-node
ui:
@ -32,6 +34,7 @@ services:
image: "deepset/haystack-streamlit-ui:latest"
ports:
- 8501:8501
restart: on-failure
environment:
- API_ENDPOINT=http://haystack-api:8000
- EVAL_FILE=eval_labels_example.csv