From f467ca699445a189d74b743eade483b62f13d3b3 Mon Sep 17 00:00:00 2001 From: Administrator Date: Mon, 22 Aug 2022 11:12:06 +0300 Subject: [PATCH] mongo --- .deploy/deploy-dev.yaml | 21 +++++++++++++++++++++ .deploy/deploy-prod.yaml | 22 ++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/.deploy/deploy-dev.yaml b/.deploy/deploy-dev.yaml index 22713dd..c3a66c8 100644 --- a/.deploy/deploy-dev.yaml +++ b/.deploy/deploy-dev.yaml @@ -99,6 +99,27 @@ services: parallelism: 1 order: start-first + mongo: + image: mongo + volumes: + - mongo_data:/data/db + environment: + MONGO_INITDB_ROOT_USERNAME: mongoadmin + MONGO_INITDB_ROOT_PASSWORD: $MONGO_PASSWORD_DEV + ports: + - "27017:27017" + deploy: + mode: replicated + placement: + constraints: [node.role == manager] + restart_policy: + condition: any + update_config: + parallelism: 1 + order: start-first + volumes: minio_data: + driver: local + mongo_data: driver: local \ No newline at end of file diff --git a/.deploy/deploy-prod.yaml b/.deploy/deploy-prod.yaml index 34aae65..b35364c 100644 --- a/.deploy/deploy-prod.yaml +++ b/.deploy/deploy-prod.yaml @@ -99,6 +99,28 @@ services: parallelism: 1 order: start-first + mongo: + image: mongo + volumes: + - mongo_data:/data/db + environment: + MONGO_INITDB_ROOT_USERNAME: mongoadmin + MONGO_INITDB_ROOT_PASSWORD: $MONGO_PASSWORD_DEV + ports: + - "27017:27017" + deploy: + mode: replicated + placement: + constraints: [node.role == manager] + restart_policy: + condition: any + update_config: + parallelism: 1 + order: start-first + + volumes: minio_data: + driver: local + mongo_data: driver: local \ No newline at end of file