Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MongoDB Replica Set #4779

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

MongoDB Replica Set #4779

wants to merge 1 commit into from

Conversation

chaadiic
Copy link

@chaadiic chaadiic commented Jan 9, 2025

Initialization Script
You will also need to initialize the replica set after the containers are up. You can do this by running the following command in a separate terminal: docker exec -it mongodb mongo --eval 'rs.initiate()'

/claim #4778

Initialization Script
You will also need to initialize the replica set after the containers are up. You can do this by running the following command in a separate terminal:
docker exec -it mongodb mongo --eval 'rs.initiate()'
@albertorizzi
Copy link
Contributor

Initialization Script You will also need to initialize the replica set after the containers are up. You can do this by running the following command in a separate terminal: docker exec -it mongodb mongo --eval 'rs.initiate()'

Is it possible to define in the docker compose the command to initialize the replica set? @chaadiic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants