{"id":19635895,"url":"https://github.com/tozd/docker-mongodb","last_synced_at":"2025-04-28T08:31:31.822Z","repository":{"id":24622327,"uuid":"28031318","full_name":"tozd/docker-mongodb","owner":"tozd","description":"MongoDB server. Read-only mirror of https://gitlab.com/tozd/docker/mongodb","archived":false,"fork":false,"pushed_at":"2023-07-13T21:56:00.000Z","size":38,"stargazers_count":0,"open_issues_count":1,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-17T20:13:41.971Z","etag":null,"topics":["docker","docker-image","mongodb"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":false,"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/tozd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"mitar"}},"created_at":"2014-12-15T10:14:40.000Z","updated_at":"2023-07-12T14:51:37.000Z","dependencies_parsed_at":"2022-07-27T04:46:37.252Z","dependency_job_id":null,"html_url":"https://github.com/tozd/docker-mongodb","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/tozd%2Fdocker-mongodb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tozd%2Fdocker-mongodb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tozd%2Fdocker-mongodb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tozd%2Fdocker-mongodb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tozd","download_url":"https://codeload.github.com/tozd/docker-mongodb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224102311,"owners_count":17256140,"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":["docker","docker-image","mongodb"],"created_at":"2024-11-11T12:27:25.933Z","updated_at":"2024-11-11T12:27:26.339Z","avatar_url":"https://github.com/tozd.png","language":"Dockerfile","funding_links":["https://github.com/sponsors/mitar"],"categories":[],"sub_categories":[],"readme":"# tozd/mongodb\n\n\u003chttps://gitlab.com/tozd/docker/mongodb\u003e\n\nAvailable as:\n\n- [`tozd/mongodb`](https://hub.docker.com/r/tozd/mongodb)\n- [`registry.gitlab.com/tozd/docker/mongodb`](https://gitlab.com/tozd/docker/mongodb/container_registry)\n\n## Image inheritance\n\n[`tozd/base`](https://gitlab.com/tozd/docker/base) ← [`tozd/dinit`](https://gitlab.com/tozd/docker/dinit) ← `tozd/mongodb`\n\n## Tags\n\n- `2.4`: MongoDB 2.4\n- `2.6`: MongoDB 2.6\n- `3.2`: MongoDB 3.2\n- `3.4`: MongoDB 3.4\n- `3.6`: MongoDB 3.6\n- `4.0`: MongoDB 4.0\n- `4.2`: MongoDB 4.2\n- `4.4`: MongoDB 4.4\n- `5.0`: MongoDB 5.0\n- `6.0`: MongoDB 6.0\n\n## Volumes\n\n- `/var/log/mongod`: Log files when `LOG_TO_STDOUT` is not set to `1`.\n- `/var/lib/mongodb`: Persist this volume to not lose state.\n\n## Variables\n\n- `LOG_TO_STDOUT`: If set to `1` output logs to stdout (retrievable using `docker logs`) instead of log volumes.\n\n## Ports\n\n- `27017/tcp`: Port on which MongoDB listens.\n\n## Description\n\nImage providing [MongoDB](https://www.mongodb.org/) as a service.\n\nDifferent Docker tags provide different MongoDB versions.\n\nYou should make sure you mount data volume (`/var/lib/mongodb`) so that you do not\nlose database data when you are recreating a container. If a volume is empty, image\nwill initialize it at the first startup.\n\n`/var/lib/mongodb/mongodb.conf` is used for configuration and you can modify it as needed.\nBecause it is inside the data volume it is initialized the first time to defaults if the\nvolume is empty.\n\nIf you are extending this image, you can add a script `/etc/service/mongod/run.initialization`\nwhich will be run at a container startup, after the container is initialized, but before the\nMongoDB daemon is run.\n\nWhen `LOG_TO_STDOUT` is set to `1`, Docker image logs output to stdout and stderr. All stdout output is JSON.\nFrom MongoDB 4.4 on also stored logs are JSON.\n\n## GitHub mirror\n\nThere is also a [read-only GitHub mirror available](https://github.com/tozd/docker-mongodb),\nif you need to fork the project there.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftozd%2Fdocker-mongodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftozd%2Fdocker-mongodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftozd%2Fdocker-mongodb/lists"}