From 66e595ff01c0434dbd55488446d5e448c99c2c4d Mon Sep 17 00:00:00 2001 From: Riku Rouvila Date: Fri, 6 Oct 2023 14:46:54 +0300 Subject: [PATCH] make sure minio is always deployed to the data1 node --- infrastructure/docker-compose.deploy.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/infrastructure/docker-compose.deploy.yml b/infrastructure/docker-compose.deploy.yml index f8442d7b6..3ebeaf4b9 100644 --- a/infrastructure/docker-compose.deploy.yml +++ b/infrastructure/docker-compose.deploy.yml @@ -283,6 +283,10 @@ services: - '/data/minio:/data' command: server --console-address ":9001" /data deploy: + replicas: 1 + placement: + constraints: + - node.labels.data1 == true labels: - 'traefik.enable=true' - 'traefik.docker.network=opencrvs_overlay_net'