{"id":15571476,"url":"https://github.com/hatamiarash7/mongo-with-auth","last_synced_at":"2026-04-09T12:58:08.404Z","repository":{"id":40480918,"uuid":"292324107","full_name":"hatamiarash7/Mongo-With-Auth","owner":"hatamiarash7","description":"Setup authentication on Official MongoDB image","archived":false,"fork":false,"pushed_at":"2023-12-15T17:56:13.000Z","size":27,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T18:57:58.641Z","etag":null,"topics":["database","docker","docker-image","mongo","mongodb"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hatamiarash7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-09-02T15:38:41.000Z","updated_at":"2020-09-21T10:51:19.000Z","dependencies_parsed_at":"2024-10-02T18:00:46.349Z","dependency_job_id":"d1f91feb-7104-4143-88ce-92100119118d","html_url":"https://github.com/hatamiarash7/Mongo-With-Auth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatamiarash7%2FMongo-With-Auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatamiarash7%2FMongo-With-Auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatamiarash7%2FMongo-With-Auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatamiarash7%2FMongo-With-Auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hatamiarash7","download_url":"https://codeload.github.com/hatamiarash7/Mongo-With-Auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246149455,"owners_count":20731359,"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","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":["database","docker","docker-image","mongo","mongodb"],"created_at":"2024-10-02T18:00:36.645Z","updated_at":"2025-12-30T23:19:13.634Z","avatar_url":"https://github.com/hatamiarash7.png","language":"Shell","funding_links":["https://ko-fi.com/D1D1WGU9"],"categories":[],"sub_categories":[],"readme":"# MongoDB with authentication\n\n[![GitHub license](https://img.shields.io/github/license/hatamiarash7/Mongo-With-Auth)](https://github.com/hatamiarash7/Mongo-With-Auth/blob/master/LICENSE) ![Github](https://github.com/hatamiarash7/Mongo-With-Auth/workflows/Github/badge.svg) ![Dockerhub](https://github.com/hatamiarash7/Mongo-With-Auth/workflows/Dockerhub/badge.svg) ![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/hatamiarash7/mongo-auth)\n\nA Docker Image for MongoDB which makes it easy to create an Admin, a Database and a Database User when the container is first launched.\n\nIt's an updated version of [docker-mongo-auth](https://github.com/aashreys/docker-mongo-auth). That's not maintain anymore.\n\n## Customization\n\nThere are multiple environment variables which you can specify to customize the username and passwords of your users.\n\n- With Dockerfile\n\n```dockerfile\n# ENV AUTH yes\n\n# ENV MONGODB_ADMIN_USER admin\n# ENV MONGODB_ADMIN_PASS adminpass\n\n# ENV MONGODB_APPLICATION_DATABASE testdatabase\n# ENV MONGODB_APPLICATION_USER testuser\n# ENV MONGODB_APPLICATION_PASS testpass\n```\n  \n- With docker-compose.yml\n\n```yaml\nservices:\n  db:\n    image: hatamiarash7/mongo-auth:latest\n    environment:\n      - AUTH=yes\n      - MONGODB_ADMIN_USER=admin\n      - MONGODB_ADMIN_PASS=adminpass\n      - MONGODB_APPLICATION_DATABASE=testdatabase\n      - MONGODB_APPLICATION_USER=testuser\n      - MONGODB_APPLICATION_PASS=testpass\n```\n\n- With command line\n\n```bash\ndocker run -it \\\n  -e AUTH=yes \\\n  -e MONGODB_ADMIN_USER=admin \\\n  -e MONGODB_ADMIN_PASS=adminpass \\\n  -e MONGODB_APPLICATION_DATABASE=testdatabase \\\n  -e MONGODB_APPLICATION_USER=testuser \\\n  -e MONGODB_APPLICATION_PASS=testpass \\\n  -p 27017:27017 hatamiarash7/mongo-auth:latest\n```\n\n## Support\n\n[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/D1D1WGU9)\n\n\u003cdiv\u003e\u003ca href=\"https://payping.ir/@hatamiarash7\"\u003e\u003cimg src=\"https://cdn.payping.ir/statics/Payping-logo/Trust/blue.svg\" height=\"128\" width=\"128\"\u003e\u003c/a\u003e\u003c/div\u003e\n\n## Contributing\n\n1. Fork it !\n2. Create your feature branch : `git checkout -b my-new-feature`\n3. Commit your changes : `git commit -am 'Add some feature'`\n4. Push to the branch : `git push origin my-new-feature`\n5. Submit a pull request :D\n\n## Issues\n\nEach project may have many problems. Contributing to the better development of this project by reporting them.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatamiarash7%2Fmongo-with-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhatamiarash7%2Fmongo-with-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatamiarash7%2Fmongo-with-auth/lists"}