From 9544b95ce34b54e2c605e557eb7ea3923e6bc329 Mon Sep 17 00:00:00 2001 From: Meysam Hadeli <35596795+meysamhadeli@users.noreply.github.com> Date: Thu, 22 Aug 2024 17:58:22 +0330 Subject: [PATCH] fix: Fix event store restart policy in docker compose. --- deployments/docker-compose/docker-compose.yaml | 7 ++++--- deployments/docker-compose/infrastructure.yaml | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/deployments/docker-compose/docker-compose.yaml b/deployments/docker-compose/docker-compose.yaml index 8cedd521..e6ee7f73 100644 --- a/deployments/docker-compose/docker-compose.yaml +++ b/deployments/docker-compose/docker-compose.yaml @@ -77,6 +77,7 @@ services: eventstore: container_name: eventstore image: eventstore/eventstore:latest + restart: unless-stopped environment: - EVENTSTORE_CLUSTER_SIZE=1 - EVENTSTORE_RUN_PROJECTIONS=All @@ -168,7 +169,7 @@ services: volumes: - ./monitoring/grafana-data/data:/var/lib/grafana networks: - - booking + - booking ####################################################### # node_exporter @@ -185,7 +186,7 @@ services: - /sys:/host/sys:ro - /:/rootfs:ro networks: - - booking + - booking ####################################################### # cadvisor @@ -206,7 +207,7 @@ services: - /dev/kmsg networks: - booking - + ###################################################### # Gateway ###################################################### diff --git a/deployments/docker-compose/infrastructure.yaml b/deployments/docker-compose/infrastructure.yaml index e9ec7518..9a17a5b3 100644 --- a/deployments/docker-compose/infrastructure.yaml +++ b/deployments/docker-compose/infrastructure.yaml @@ -78,6 +78,7 @@ services: eventstore: container_name: eventstore image: eventstore/eventstore:latest + restart: unless-stopped environment: - EVENTSTORE_CLUSTER_SIZE=1 - EVENTSTORE_RUN_PROJECTIONS=All