From 2e24159c6a978eb01822b593559c25de23e6fefd Mon Sep 17 00:00:00 2001 From: Lan Xia Date: Thu, 1 Jun 2023 17:32:43 -0400 Subject: [PATCH] Add restart on-failure in docker compose (#804) resolves: https://github.com/adoptium/aqa-test-tools/issues/802 Signed-off-by: Lan Xia --- docker-compose.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index efd28e0a..0a0f76a7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,6 +7,7 @@ services: image: mongo:6.0.1 volumes: - ./mongo/data:/data/db + restart: on-failure:3 mongo-seed: profiles: - data @@ -21,11 +22,13 @@ services: - mongo environment: MONGO_CONTAINER_NAME: mongo + restart: on-failure:3 client: build: context: test-result-summary-client args: REACT_APP_CONNECT_ADOPTIUM_API: ${REACT_APP_CONNECT_ADOPTIUM_API} + restart: on-failure:3 ports: - 3000:3000 nginx: