{"id":15867124,"url":"https://github.com/pacovk/docker-mongodb","last_synced_at":"2026-05-05T17:31:53.764Z","repository":{"id":102999260,"uuid":"123086090","full_name":"PacoVK/docker-mongodb","owner":"PacoVK","description":"Extended Dockerimage from the official MongoDb Image","archived":false,"fork":false,"pushed_at":"2018-03-03T20:03:03.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-30T18:41:05.898Z","etag":null,"topics":["docker","mongodb","nosql","nosql-database"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PacoVK.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-27T06:49:16.000Z","updated_at":"2018-02-27T06:51:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"3566fd9c-ed43-4e12-a0dd-5fabea8f9e4c","html_url":"https://github.com/PacoVK/docker-mongodb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PacoVK/docker-mongodb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacoVK%2Fdocker-mongodb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacoVK%2Fdocker-mongodb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacoVK%2Fdocker-mongodb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacoVK%2Fdocker-mongodb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PacoVK","download_url":"https://codeload.github.com/PacoVK/docker-mongodb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacoVK%2Fdocker-mongodb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32660202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","mongodb","nosql","nosql-database"],"created_at":"2024-10-05T23:41:23.139Z","updated_at":"2026-05-05T17:31:53.738Z","avatar_url":"https://github.com/PacoVK.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MongoDB #\n\nThis image is based on the official Mongodb Docker-Image but offers capabilities\nto add more configuration via shell scripts. \nThese scripts have to be mounted into Containers /mongo-init.d and will be executed sequencially\n\n## How to use ##\n\nTo start a container just run ``docker run -d -p 27017:27017 paco0512/mongodb``. \nTo start a MongoDB with auth do ``docker run -d -e MONGO_INITDB_ROOT_USERNAME=admin -e MONGO_INITDB_ROOT_PASSWORD=\u003csecret-pass\u003e -p 27017:27017 paco0512/mongodb`` this creates a user in the admin DB. \n\n## Provisioning ##\n\nTo provision MongoDB the images exposes two volumes ``/docker-entrypoint-initdb.d`` and ``/mongo-init.d``\nIn both you can put either .js or .sh scripts.\n\n### Database ###\n\nTo create new databases or users you can extend the image putting scripts into ``/docker-entrypoint-initdb.d``.\n\n### MongoDB ###\n\nTo configure e.g. a sharded MongoDB cluster you have to run several commands. [This](https://dzone.com/articles/composing-a-sharded-mongodb-on-docker) tutorial by Dzone was a reference implementation. To automate these steps just create scripts and mount it into ``/mongo-init.d``. These scripts will be executed after your Database has been provisioned with all basic stuff like users/ databases.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacovk%2Fdocker-mongodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpacovk%2Fdocker-mongodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacovk%2Fdocker-mongodb/lists"}