{"id":19259647,"url":"https://github.com/dssudake/mongo-docker","last_synced_at":"2026-04-20T19:03:12.120Z","repository":{"id":78512940,"uuid":"350987463","full_name":"dssudake/mongo-docker","owner":"dssudake","description":"Basic usage of MongoDB as a Docker Container","archived":false,"fork":false,"pushed_at":"2021-03-24T17:35:40.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-25T07:49:28.666Z","etag":null,"topics":["docker","docker-compose","mongo-express","mongodb"],"latest_commit_sha":null,"homepage":"","language":null,"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/dssudake.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":"2021-03-24T07:36:02.000Z","updated_at":"2021-03-24T17:35:42.000Z","dependencies_parsed_at":"2023-02-26T07:46:19.932Z","dependency_job_id":null,"html_url":"https://github.com/dssudake/mongo-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dssudake/mongo-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dssudake%2Fmongo-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dssudake%2Fmongo-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dssudake%2Fmongo-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dssudake%2Fmongo-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dssudake","download_url":"https://codeload.github.com/dssudake/mongo-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dssudake%2Fmongo-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017238,"owners_count":26086015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","docker-compose","mongo-express","mongodb"],"created_at":"2024-11-09T19:17:15.080Z","updated_at":"2025-10-13T23:32:08.901Z","avatar_url":"https://github.com/dssudake.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"## Basic usage of MongoDB as a Docker Container\n\n### Run mongoDB using docker commands\n\n```bash\n# Pull official MongoDB and mongo-express image from docker hub\ndocker pull mongo\ndocker pull mongo-express\n\n# Create a docker network\ndocker network create mongo-network\n\n# Run mongoDB container in detached mode\ndocker run -d \\\n  -p 27017:27017 \\\n  -e MONGO_INITDB_ROOT_USERNAME=root \\\n  -e MONGO_INITDB_ROOT_PASSWORD=example \\\n  --net mongo-network \\\n  --name mongodb \\\n  mongo\n\n# Run mongo-express container in detached mode\ndocker run -d \\\n  -p 8081:8081 \\\n  -e ME_CONFIG_MONGODB_ADMINUSERNAME=root \\\n  -e ME_CONFIG_MONGODB_ADMINPASSWORD=example \\\n  -e ME_CONFIG_MONGODB_SERVER=mongodb \\\n  --net mongo-network \\\n  --name mongo-express \\\n  mongo-express\n```\n\nThen you can hit http://localhost:8081 or http://host-ip:8081 in your browser to view MongoDB admin interface.\n\n---\n\n### Run mongoDB using docker-compose\n\n```bash\n# Clone this repo\ngit clone https://github.com/dssudake/mongo-docker.git\n\n# Change directory\ncd mongo-docker\n\n# Run both the MongoDB and mongo-express containers\ndocker-compose up -d\n```\n\nThen you can hit http://localhost:8081 or http://host-ip:8081 in your browser to view MongoDB admin interface.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdssudake%2Fmongo-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdssudake%2Fmongo-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdssudake%2Fmongo-docker/lists"}