From 7716b985cfbe85ec7a50d4d857a77e391ca51173 Mon Sep 17 00:00:00 2001 From: Shashank Budhanuru Ramaraju Date: Fri, 15 Mar 2024 13:23:49 +0000 Subject: [PATCH] mongo db started fix --- compose.yml | 4 +++- docker/config/config.json | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/compose.yml b/compose.yml index c318f9298..13010f8a3 100644 --- a/compose.yml +++ b/compose.yml @@ -30,7 +30,9 @@ services: image: mongo volumes: - mongodb-volume:/data/db - command: --replSet rs0 + command: ["--replSet", "rs0", "--port", "27017"] + ports: + - 27017:27017 # this container will exit after initializing the replica set mongodb-init: diff --git a/docker/config/config.json b/docker/config/config.json index a9d5ac43c..739ed92e8 100644 --- a/docker/config/config.json +++ b/docker/config/config.json @@ -29,8 +29,8 @@ "internetAccountId": "apolloInternetAccount", "name": "Demo Server", "description": "A server hosting a small fictional organism to demonstrate Apollo capabilities", - "domains": ["localhost"], - "baseURL": "http://localhost" + "domains": ["localhost:3999"], + "baseURL": "http://localhost:3999" } ], "defaultSession": {