Skip to content

Setup Instructions

Azita Abdollahi edited this page Apr 15, 2025 · 1 revision

Setup Instructions

Step 1: Create Replica Key

openssl rand -base64 756 > replica.key
sudo chown 999:999 replica.key
chmod 600 replica.key

Step 2: Create Docker Network

docker network create \
  --driver=bridge \
  --subnet=192.168.22.0/24 \
  --ip-range=192.168.22.0/24 \
  --gateway=192.168.22.254 \
  connet

Step 3: Create Environment File

cp .env.example .env

Step 4: Run Services

docker compose up -d

Once all MongoDB containers are healthy, the mongo-init container will automatically initiate the replica set.

Clone this wiki locally