From 64eba52ef63ed5b5f52b1c106eaaf6fb59c39db2 Mon Sep 17 00:00:00 2001 From: Cyrille <1618640+cyri113@users.noreply.github.com> Date: Thu, 4 Jan 2024 11:27:48 +0100 Subject: [PATCH] Update docker-compose.yml --- development/docker-compose.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/development/docker-compose.yml b/development/docker-compose.yml index ebfea1a..b33a663 100644 --- a/development/docker-compose.yml +++ b/development/docker-compose.yml @@ -14,12 +14,13 @@ services: image: mongo:latest container_name: mongodb-dev restart: unless-stopped - command: mongod --replSet "rs0" + command: mongod --bind_ip_all --replSet dbrs --keyFile /data/replica.key ports: - 37017:27017 env_file: - ./.env.db volumes: + - mongo/replica.key:/data/replica.key - mongodb_data_container:/data/db - type: bind source: ../init-mongo.sh