From 4a9e61e538ae21f343e5506cc14d89892404e35a Mon Sep 17 00:00:00 2001 From: Prabhjot Singh Sethi Date: Mon, 7 Apr 2025 10:44:43 +0000 Subject: [PATCH] Add mongo express container for the dev setup Re organise scripts for mongodb Signed-off-by: Prabhjot Singh Sethi --- scripts/{ => mongodb}/mongod.conf | 0 scripts/{ => mongodb}/run-mongodb-dev.sh | 0 scripts/mongodb/run-mongoexpress.sh | 5 +++++ 3 files changed, 5 insertions(+) rename scripts/{ => mongodb}/mongod.conf (100%) rename scripts/{ => mongodb}/run-mongodb-dev.sh (100%) create mode 100755 scripts/mongodb/run-mongoexpress.sh diff --git a/scripts/mongod.conf b/scripts/mongodb/mongod.conf similarity index 100% rename from scripts/mongod.conf rename to scripts/mongodb/mongod.conf diff --git a/scripts/run-mongodb-dev.sh b/scripts/mongodb/run-mongodb-dev.sh similarity index 100% rename from scripts/run-mongodb-dev.sh rename to scripts/mongodb/run-mongodb-dev.sh diff --git a/scripts/mongodb/run-mongoexpress.sh b/scripts/mongodb/run-mongoexpress.sh new file mode 100755 index 0000000..742b74a --- /dev/null +++ b/scripts/mongodb/run-mongoexpress.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +set -ex + +sudo docker run -d --network host --name mongo-express -e ME_CONFIG_MONGODB_ADMINUSERNAME=root -e ME_CONFIG_MONGODB_ADMINPASSWORD=password -e ME_CONFIG_MONGODB_SERVER=localhost mongo-express:1.0.2-20-alpine3.19