Skip to content

Instantly share code, notes, and snippets.

@jonnung
Last active July 1, 2022 03:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonnung/6cbeeab13585da022a93e48e69d9bc6f to your computer and use it in GitHub Desktop.
Save jonnung/6cbeeab13585da022a93e48e69d9bc6f to your computer and use it in GitHub Desktop.
도커로 스탠드얼론 MongoDB 컨테이너를 ReplSet으로 설정하기
$ docker run --rm -p27017:27017 mongo-custom:4.4 mongod --replSet rs0
From mongo:4.4
WORKDIR .
COPY initiateReplSet.js ./docker-entrypoint-initdb.d/
CMD ["-replSet", "rs0"]
@PrimadonnaGit
Copy link

감사합니다. 덕분에 테스트 인생이 편해졌습니다 😍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment