Syntax highlighting of db/mongodb

= MongoDB =

<<TableOfContents(2)>>

== Полезные ссылки ==

[[https://www.mongodb.com/]]

== Server ==

[[https://www.mongodb.com/docs/manual/| Документация ]]


=== Установка ===

Docker

 . [[https://www.mongodb.com/docs/manual/tutorial/install-mongodb-community-with-docker/#std-label-docker-mongodb-community-install|Install with Docker]]
 . [[https://www.mongodb.com/compatibility/docker|Docker and MongoDB]]

{{{#!highlight bash

docker volume create mongodata

docker run --name mongodb \
  -d \
  --restart=unless-stopped \
  -v mongodata:/data/db \
  -p 127.0.0.1:27017:27017 \
  -e MONGO_INITDB_ROOT_USERNAME=user \
  -e MONGO_INITDB_ROOT_PASSWORD=secret \
  mongodb/mongodb-community-server:latest
}}}