From bed3650b49efd1bb3e4a418cab2bf5e130cad7cb Mon Sep 17 00:00:00 2001 From: Sai krishna Date: Wed, 4 Dec 2024 13:03:50 +0530 Subject: [PATCH] feat: add mongo and mongo express to docker compose --- compose.env | 6 ++++++ docker-compose.yaml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/compose.env b/compose.env index be4be68e..d1baa756 100644 --- a/compose.env +++ b/compose.env @@ -48,3 +48,9 @@ BRAVE_API_KEY= ## WHISPER WHISPER_PORT=10300 WHISPER_MODEL=Systran/faster-distil-whisper-large-v3 + +## MongoDB +ME_CONFIG_MONGODB_ADMINUSERNAME: root +ME_CONFIG_MONGODB_ADMINPASSWORD: example +ME_CONFIG_MONGODB_URL: mongodb://root:example@mongo:27017/ +ME_CONFIG_BASICAUTH: false \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index 12e40b51..3a673f2a 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -231,6 +231,36 @@ services: networks: - cognita-docker + mongo: + image: mongo + pull_policy: if_not_present + restart: unless-stopped + container_name: mongo + profiles: + - mongo + environment: + MONGO_INITDB_ROOT_USERNAME: root + MONGO_INITDB_ROOT_PASSWORD: example + networks: + - cognita-docker + + mongo-express: + image: mongo-express + pull_policy: if_not_present + restart: unless-stopped + container_name: mongo-express + profiles: + - mongo-express + ports: + - 8081:8081 + environment: + ME_CONFIG_MONGODB_ADMINUSERNAME: root + ME_CONFIG_MONGODB_ADMINPASSWORD: example + ME_CONFIG_MONGODB_URL: mongodb://root:example@mongo:27017/ + ME_CONFIG_BASICAUTH: false + networks: + - cognita-docker + networks: cognita-docker: external: false