a configurable mogodb docker image
Go to file
2024-04-19 22:42:34 +08:00
build init 2024-04-19 22:26:33 +08:00
.gitignore init 2024-04-19 22:26:33 +08:00
build.sh init 2024-04-19 22:26:33 +08:00
docker-compose.yml restart: always -> unless-stopped 2024-04-19 22:42:34 +08:00
Dockerfile clean 2024-04-19 22:36:46 +08:00
README.md init 2024-04-19 22:26:33 +08:00

MongoDB Images

How to use this image

  • Build the image
docker build . -t mongo_stwp
  • Run the container docker compose up to initialize the container

  • Edit the ./etc/mongo/mongod.conf

  • If you want to use a keyfile, put it as ./etc/mongo/mongo.keyfile anytime, the container will set right permissions to it automatically. (Optional)

  • Run docker compose up