{"id":1411,"date":"2024-09-13T22:00:00","date_gmt":"2024-09-13T20:00:00","guid":{"rendered":"https:\/\/demo.sidekick.be\/itenium\/docker-mongo\/"},"modified":"2025-11-28T13:31:42","modified_gmt":"2025-11-28T12:31:42","slug":"docker-mongo","status":"publish","type":"post","link":"https:\/\/demo.sidekick.be\/itenium\/blog\/docker\/docker-mongo\/","title":{"rendered":"Docker + Mongo: a guide"},"content":{"rendered":"<h1 id=\"simple-run\">Simple Run<\/h1>\n<pre><code class=\"language-sh\">docker run --name some-mongo \n  -e MONGO_INITDB_ROOT_USERNAME=mongoadmin \n  -e MONGO_INITDB_ROOT_PASSWORD=pwd \n  -p 27017:27017\n  -d mongo\n<\/code><\/pre>\n<h1 id=\"initial-load\">Initial Load<\/h1>\n<p>Scripts are executed in alphabetical order, executed on <code>MONGO_INITDB_DATABASE<\/code>.<\/p>\n<p>For Mongo &lt;6 by <code>mongo<\/code> and by <code>mongosh<\/code> for mongo &gt;=6.<\/p>\n<p>See the <a href=\"https:\/\/github.com\/itenium-be\/Docker-Mongo\">Github Docker-Mongo Repository<\/a> for these examples.<\/p>\n<h2 id=\"with-javascript\">With JavaScript<\/h2>\n<p>Example <code>compose.yaml<\/code> file:<\/p>\n<pre><code class=\"language-yaml\">services:\n  mongo-js:\n    container_name: mongo-js-load\n    image: mongo\n    volumes:\n      - db-js:\/data\/db\n      - .\/load-js:\/docker-entrypoint-initdb.d\n    ports:\n      - \"27009:27017\"\n    environment:\n      MONGO_INITDB_DATABASE: jsapp\n      MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER}\n      MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PWD}\n\nvolumes:\n  db-js: {}\n<\/code><\/pre>\n<p>The <code>.env<\/code> file:<\/p>\n<pre><code class=\"language-ini\">MONGO_USER=mongoadmin\nMONGO_PWD=pwd\n<\/code><\/pre>\n<p>The <code>load-js<\/code> directory contains a <code>load.js<\/code> file:<\/p>\n<pre><code class=\"language-js\">db.celebrities.insertMany([\n  { name: \"Jon Skeet\" },\n  { name: \"Martin Fowler\" },\n  { name: \"Erich Gamma\" }\n]);\n<\/code><\/pre>\n<h2 id=\"with-shell\">With Shell<\/h2>\n<pre><code class=\"language-yaml\">services:\n  mongo-sh:\n    container_name: mongo-sh-load\n    image: mongo\n    volumes:\n      - db-sh:\/data\/db\n      - .\/load-sh\/scripts:\/docker-entrypoint-initdb.d\n      - .\/load-sh\/data:\/mongo-seed-jsons\n    ports:\n      - \"27008:27017\"\n    environment:\n      MONGO_INITDB_DATABASE: shapp\n      MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER}\n      MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PWD}\n\nvolumes:\n  db-sh: {}\n<\/code><\/pre>\n<p>In <code>load-sh\/data<\/code> put your json files to be imported.<\/p>\n<p>You can either already provide the ids in the json with <code>\"_id\": { \"$oid\": \"5bb0b3050581bf10c4bb89c3\" }<\/code> or omit the <code>_id<\/code> to have mongo create one for you.<\/p>\n<p>In <code>load-sh\/scripts<\/code> you can import the jsons with a <code>.sh<\/code> file:<\/p>\n<pre><code class=\"language-sh\"># A json with an []\nmongoimport --db $MONGO_INITDB_DATABASE \n  --collection celebrities \n  --jsonArray \n  --file \/mongo-seed-jsons\/celebrities.json \n  --authenticationDatabase admin \n  --username $MONGO_INITDB_ROOT_USERNAME \n  --password $MONGO_INITDB_ROOT_PASSWORD\n\n# A json with a single {}\nmongoimport --db $MONGO_INITDB_DATABASE \n  --collection socials \n  --file \/mongo-seed-jsons\/socials.json \n  --authenticationDatabase admin \n  --username $MONGO_INITDB_ROOT_USERNAME \n  --password $MONGO_INITDB_ROOT_PASSWORD\n<\/code><\/pre>\n<h1 id=\"mongo-shell\">Mongo Shell<\/h1>\n<pre><code class=\"language-sh\"># With mongo-js-load the name of the container\n# And jsapp the database name\ndocker exec -it mongo-js-load mongosh \n  --username mongoadmin \n  --password pwd \n  --authenticationDatabase admin \n  jsapp\n<\/code><\/pre>\n<p>In the shell:<\/p>\n<pre><code class=\"language-js\">db.celebrities.find()\n\nuse admin\nshow collections\nexit\n<\/code><\/pre>\n<p>If you just want to bash into it:<\/p>\n<pre><code class=\"language-sh\">docker exec -it mongo-js-load sh\n<\/code><\/pre>\n<h1 id=\"mongodconf\">mongod.conf<\/h1>\n<p>By default mongo will not load any conf file. If you want to work with a custom <a href=\"https:\/\/www.mongodb.com\/docs\/manual\/reference\/configuration-options\/\">mongod.conf<\/a>:<\/p>\n<pre><code class=\"language-yaml\">services:\n  mongo-conf:\n    container_name: mongo-conf\n    image: mongo\n    command:\n      - '-f'\n      - '\/etc\/mongod.conf'\n    volumes:\n      - db-conf:\/data\/db\n      - .\/mongod.conf:\/etc\/mongod.conf\n    ports:\n      - \"27007:27007\"\n    environment:\n      MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER}\n      MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PWD}\n\nvolumes:\n  db-conf: {}\n<\/code><\/pre>\n<p>The container port is <code>27007<\/code> because of this <code>mongod.conf<\/code>:<\/p>\n<pre><code class=\"language-yaml\">net:\n  port: 27007\n  bindIp: 127.0.0.1\n<\/code><\/pre>\n<p>Inside the container check <a href=\"https:\/\/www.mongodb.com\/docs\/manual\/administration\/configuration\/#std-label-base-config\"><code>\/etc\/mongod.conf.orig<\/code><\/a> for a basic one. Or if you have installed it locally:<\/p>\n<table class=\"table-code\">\n<thead>\n<tr>\n<th>Platform<\/th>\n<th>Install Method<\/th>\n<th>Configuration File<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Linux<\/td>\n<td>apt, yum or zypper<\/td>\n<td>\/etc\/mongod.conf<\/td>\n<\/tr>\n<tr>\n<td>macOS<\/td>\n<td>brew<\/td>\n<td>\/usr\/local\/etc\/mongod.conf (Intel processor)<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>\/opt\/homebrew\/etc\/mongod.conf (Apple M1 processors)<\/td>\n<\/tr>\n<tr>\n<td>Windows<\/td>\n<td>MSI<\/td>\n<td>&lt;install directory&gt;binmongod.cfg<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1 id=\"security\">Security<\/h1>\n<p>Get into the <code>mongosh<\/code> without credentials and then do everything in the shell itself.<\/p>\n<p>See <a href=\"https:\/\/www.mongodb.com\/docs\/manual\/reference\/method\/js-user-management\/\">User Management Methods<\/a> in the mongo docs for more!<\/p>\n<pre><code class=\"language-js\">docker exec -it mongo-secure mongosh\n\nuse admin\ndb.auth(\"mongoadmin\", \"pwd\")\n\nuse otherDb\ndb.createUser({\n  user: 'otherDbReader',\n  pwd: 'pwd',\n  roles: [{\n    role: 'read',\n    db: 'otherDb'\n  }]\n})\n<\/code><\/pre>\n<h2 id=\"with-initial-load\">With Initial Load<\/h2>\n<p>In a <code>js<\/code> file. Mongo 6 supports <code>process.env<\/code>:<\/p>\n<pre><code class=\"language-js\">db.createUser({\n  user: 'user2',\n  pwd: process.env.USER2_PWD,\n  roles: [{\n    role: 'read',\n    db: 'someDb'\n  }]\n})\n<\/code><\/pre>\n<p>Before mongo 6, use a <code>sh<\/code> file instead:<\/p>\n<pre><code class=\"language-sh\">mongosh &lt;&lt;EOF\nuse $MONGO_INITDB_DATABASE\ndb.createUser({\n  user: '$OTHER_USER',\n  pwd: '$OTHER_PWD',\n  roles: [{\n    role: 'read',\n    db: '$MONGO_INITDB_DATABASE'\n  }]\n})\nEOF\n<\/code><\/pre>\n<h2 id=\"roles\">Roles<\/h2>\n<p>The official docs for <a href=\"https:\/\/www.mongodb.com\/docs\/manual\/reference\/built-in-roles\/#std-label-built-in-roles\">Built-In Roles<\/a>.<\/p>\n<table class=\"table-code\">\n<thead>\n<tr>\n<th>Role<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><\/td>\n<td><strong>Database User Roles<\/strong><\/td>\n<\/tr>\n<tr>\n<td>read<\/td>\n<td>Read data on all non-system collections (+ <a href=\"https:\/\/www.mongodb.com\/docs\/manual\/reference\/system-collections\/#mongodb-data--database-.system.js\"><code>system.js<\/code><\/a>)<\/td>\n<\/tr>\n<tr>\n<td>readWrite<\/td>\n<td>Can modify all collections from the <code>read<\/code> role<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><strong>Database Administration Roles<\/strong><\/td>\n<\/tr>\n<tr>\n<td>dbAdmin<\/td>\n<td>Schema-related tasks, indexing and gathering statistics<\/td>\n<\/tr>\n<tr>\n<td>userAdmin<\/td>\n<td>Create and modify roles and users on the current db. Can grant any privilege to any user, including themselves (indirectly provides <code>superuser<\/code> to the db\/cluster)<\/td>\n<\/tr>\n<tr>\n<td>dbOwner<\/td>\n<td>Combines readWrite, dbAdmin and userAdmin<\/td>\n<\/tr>\n<tr>\n<td>backup<\/td>\n<td>Minimal privileges for backing up data<\/td>\n<\/tr>\n<tr>\n<td>restore<\/td>\n<td>Minimal privileges for restoring backups<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Other roles:<\/p>\n<ul>\n<li><code>readAnyDatabase<\/code>: the same as the roles above, but for all databases (also exists for <code>readWrite<\/code>, <code>dbAdmin<\/code> and <code>userAdmin<\/code>)<\/li>\n<li><code>clusterAdmin<\/code>: clusterManager + clusterMonitor + hostManager (+ dropDatabase action)<\/li>\n<li><code>enableSharding<\/code>: Enable sharding for a collection and modify existing shard keys<\/li>\n<li><code>root<\/code>: global superuser access: xxxAnyDatabase + clusterAdmin + backup\/restore<\/li>\n<\/ul>\n<h1 id=\"synology\">Synology<\/h1>\n<p>If you run these examples on Synology, chances are they won\u2019t work! You may see the following error:<\/p>\n<p class=\"notice--danger\">WARNING: MongoDB 5.0+ requires a CPU with AVX (Advanced Vector Extensions) support, and your current system does not appear to have that!<\/p>\n<p>Check <a href=\"https:\/\/kb.synology.com\/en-me\/DSM\/tutorial\/What_kind_of_CPU_does_my_NAS_have\">here<\/a> to see if yours has AVX. Basically all models from the 21+, 22+, 23+ 24+ series.<\/p>\n<p><!-- see https:\/\/jira.mongodb.org\/browse\/SERVER-54407 see also https:\/\/www.mongodb.com\/community\/forums\/t\/mongodb-5-0-cpu-intel-g4650-compatibility\/116610\/2 see also https:\/\/github.com\/docker-library\/mongo\/issues\/485#issuecomment-891991814 --><\/p>\n<p>You\u2019ll also run against a permissions issue when executing the <code>js<\/code> or <code>sh<\/code> files, which we\u2019ll fix with a custom <code>Dockerfile<\/code>:<\/p>\n<pre><code class=\"language-yaml\">services:\n  mongo-synology:\n    container_name: mongo-syno-load\n    build:\n      context: .\/load-syno\n      dockerfile: Dockerfile\n    volumes:\n      - db-syno:\/data\/db\n    ports:\n      - \"27006:27017\"\n    environment:\n      MONGO_INITDB_DATABASE: synoapp\n      MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER}\n      MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PWD}\n\nvolumes:\n  db-syno: {}\n<\/code><\/pre>\n<p>The <code>load-syno\/Dockerfile<\/code> file:<\/p>\n<pre><code class=\"language-dockerfile\"># Last version without AVX:\nFROM mongo:4.4.29\n\n# Copy your sh file and adjust permissions:\nCOPY import.sh \/docker-entrypoint-initdb.d\nRUN chmod +x \/docker-entrypoint-initdb.d\/import.sh\n\nCMD [\"mongod\"]\n<\/code><\/pre>\n<h1>Extras<\/h1>\n<p><b>Stuff that came into being during the making of this post<\/b><\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/itenium-be\/Docker-Mongo\">The docker + mongo examples<\/a><\/li>\n<\/ul>\n<p><b>Other interesting reads<\/b><\/p>\n<ul>\n<li><a href=\"https:\/\/hub.docker.com\/_\/mongo\">Docker Hub: Mongo (Community Maintained)<\/a><\/li>\n<li><a href=\"https:\/\/hub.docker.com\/r\/mongodb\/mongodb-community-server\">Docker Hub: Mongo (MongoDb Company)<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/docker-library\/mongo\" class=\"github\"><img decoding=\"async\" src=\"https:\/\/img.shields.io\/github\/stars\/docker-library\/mongo.svg?style=social&#038;label=Star\" \/><\/a><a href=\"https:\/\/github.com\/docker-library\/mongo\">docker-library\/mongo<\/a>: Github repo for Docker Image (Community)<\/li>\n<li><a href=\"https:\/\/tutorialsight.com\/how-to-install-mongodb-on-your-synology-nas\/\">Step by step Docker+Mongo Tutorial (with screenshots;)<\/a><\/li>\n<\/ul>\n<h1>Updates<\/h1>\n<ul>\n<li> 14 September 2024: Added mongo-secure<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>How to load some initial data after spinning up a mongo with Docker.<\/p>\n<p>If you want to follow the examples:<\/p>\n<pre><code class=\"language-sh\">git clone https:\/\/github.com\/itenium-be\/Docker-Mongo\ncd Docker-Mongo\ndocker compose up -d --build\n\n# After fiddling, force re-creating the mongos:\ndocker compose down -v\ndocker compose up -d --build\n<\/code><\/pre>\n","protected":false},"author":1,"featured_media":1991,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[16],"tags":[29,17],"class_list":["post-1411","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-docker","tag-mongo","tag-synology"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Docker + Mongo: a guide - Itenium<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Docker + Mongo: a guide - Itenium\" \/>\n<meta property=\"og:description\" content=\"How to load some initial data after spinning up a mongo with Docker.If you want to follow the examples: git clone https:\/\/github.com\/itenium-be\/Docker-Mongo cd Docker-Mongo docker compose up -d --build # After fiddling, force re-creating the mongos: docker compose down -v docker compose up -d --build\" \/>\n<meta property=\"og:url\" content=\"https:\/\/demo.sidekick.be\/itenium\/blog\/docker\/docker-mongo\/\" \/>\n<meta property=\"og:site_name\" content=\"Itenium\" \/>\n<meta property=\"article:published_time\" content=\"2024-09-13T20:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-28T12:31:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/demo.sidekick.be\/itenium\/wp-content\/uploads\/2025\/11\/docker-mongo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"360\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Usdevelop\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Usdevelop\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/blog\/docker\/docker-mongo\/\",\"url\":\"https:\/\/demo.sidekick.be\/itenium\/blog\/docker\/docker-mongo\/\",\"name\":\"Docker + Mongo: a guide - Itenium\",\"isPartOf\":{\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/blog\/docker\/docker-mongo\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/blog\/docker\/docker-mongo\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/demo.sidekick.be\/itenium\/wp-content\/uploads\/2025\/11\/docker-mongo.png\",\"datePublished\":\"2024-09-13T20:00:00+00:00\",\"dateModified\":\"2025-11-28T12:31:42+00:00\",\"author\":{\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/#\/schema\/person\/6ab401ce01e858184ee4a8667fe0f022\"},\"breadcrumb\":{\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/blog\/docker\/docker-mongo\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/demo.sidekick.be\/itenium\/blog\/docker\/docker-mongo\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/blog\/docker\/docker-mongo\/#primaryimage\",\"url\":\"https:\/\/demo.sidekick.be\/itenium\/wp-content\/uploads\/2025\/11\/docker-mongo.png\",\"contentUrl\":\"https:\/\/demo.sidekick.be\/itenium\/wp-content\/uploads\/2025\/11\/docker-mongo.png\",\"width\":360,\"height\":300,\"caption\":\"docker mongo initial data load\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/blog\/docker\/docker-mongo\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/demo.sidekick.be\/itenium\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docker + Mongo: a guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/#website\",\"url\":\"https:\/\/demo.sidekick.be\/itenium\/\",\"name\":\"Itenium\",\"description\":\"We build software. We build careers.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/demo.sidekick.be\/itenium\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/#\/schema\/person\/6ab401ce01e858184ee4a8667fe0f022\",\"name\":\"Usdevelop\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cc8cf9b9e9d5bbe7e8d247907cc9ac8457bbfa2854b52eaddf6529adfe88ceab?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cc8cf9b9e9d5bbe7e8d247907cc9ac8457bbfa2854b52eaddf6529adfe88ceab?s=96&d=mm&r=g\",\"caption\":\"Usdevelop\"},\"sameAs\":[\"https:\/\/demo.sidekick.be\/itenium\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Docker + Mongo: a guide - Itenium","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"Docker + Mongo: a guide - Itenium","og_description":"How to load some initial data after spinning up a mongo with Docker.If you want to follow the examples: git clone https:\/\/github.com\/itenium-be\/Docker-Mongo cd Docker-Mongo docker compose up -d --build # After fiddling, force re-creating the mongos: docker compose down -v docker compose up -d --build","og_url":"https:\/\/demo.sidekick.be\/itenium\/blog\/docker\/docker-mongo\/","og_site_name":"Itenium","article_published_time":"2024-09-13T20:00:00+00:00","article_modified_time":"2025-11-28T12:31:42+00:00","og_image":[{"width":360,"height":300,"url":"https:\/\/demo.sidekick.be\/itenium\/wp-content\/uploads\/2025\/11\/docker-mongo.png","type":"image\/png"}],"author":"Usdevelop","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Usdevelop","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/demo.sidekick.be\/itenium\/blog\/docker\/docker-mongo\/","url":"https:\/\/demo.sidekick.be\/itenium\/blog\/docker\/docker-mongo\/","name":"Docker + Mongo: a guide - Itenium","isPartOf":{"@id":"https:\/\/demo.sidekick.be\/itenium\/#website"},"primaryImageOfPage":{"@id":"https:\/\/demo.sidekick.be\/itenium\/blog\/docker\/docker-mongo\/#primaryimage"},"image":{"@id":"https:\/\/demo.sidekick.be\/itenium\/blog\/docker\/docker-mongo\/#primaryimage"},"thumbnailUrl":"https:\/\/demo.sidekick.be\/itenium\/wp-content\/uploads\/2025\/11\/docker-mongo.png","datePublished":"2024-09-13T20:00:00+00:00","dateModified":"2025-11-28T12:31:42+00:00","author":{"@id":"https:\/\/demo.sidekick.be\/itenium\/#\/schema\/person\/6ab401ce01e858184ee4a8667fe0f022"},"breadcrumb":{"@id":"https:\/\/demo.sidekick.be\/itenium\/blog\/docker\/docker-mongo\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/demo.sidekick.be\/itenium\/blog\/docker\/docker-mongo\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/demo.sidekick.be\/itenium\/blog\/docker\/docker-mongo\/#primaryimage","url":"https:\/\/demo.sidekick.be\/itenium\/wp-content\/uploads\/2025\/11\/docker-mongo.png","contentUrl":"https:\/\/demo.sidekick.be\/itenium\/wp-content\/uploads\/2025\/11\/docker-mongo.png","width":360,"height":300,"caption":"docker mongo initial data load"},{"@type":"BreadcrumbList","@id":"https:\/\/demo.sidekick.be\/itenium\/blog\/docker\/docker-mongo\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/demo.sidekick.be\/itenium\/"},{"@type":"ListItem","position":2,"name":"Docker + Mongo: a guide"}]},{"@type":"WebSite","@id":"https:\/\/demo.sidekick.be\/itenium\/#website","url":"https:\/\/demo.sidekick.be\/itenium\/","name":"Itenium","description":"We build software. We build careers.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/demo.sidekick.be\/itenium\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/demo.sidekick.be\/itenium\/#\/schema\/person\/6ab401ce01e858184ee4a8667fe0f022","name":"Usdevelop","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/demo.sidekick.be\/itenium\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cc8cf9b9e9d5bbe7e8d247907cc9ac8457bbfa2854b52eaddf6529adfe88ceab?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cc8cf9b9e9d5bbe7e8d247907cc9ac8457bbfa2854b52eaddf6529adfe88ceab?s=96&d=mm&r=g","caption":"Usdevelop"},"sameAs":["https:\/\/demo.sidekick.be\/itenium"]}]}},"_links":{"self":[{"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/posts\/1411","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/comments?post=1411"}],"version-history":[{"count":2,"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/posts\/1411\/revisions"}],"predecessor-version":[{"id":2160,"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/posts\/1411\/revisions\/2160"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/media\/1991"}],"wp:attachment":[{"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/media?parent=1411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/categories?post=1411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/tags?post=1411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}