{"id":19426041,"url":"https://github.com/stdakov/docker-rabbit-mongo","last_synced_at":"2026-04-17T12:34:46.990Z","repository":{"id":102576934,"uuid":"224766178","full_name":"stdakov/docker-rabbit-mongo","owner":"stdakov","description":"A ready to use docker-compose configuration with rabbitmq,mongodb,mongo-express.","archived":false,"fork":false,"pushed_at":"2022-07-08T04:41:27.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T13:49:46.312Z","etag":null,"topics":["docker","docker-compose","mongo-express","mongodb","rabbitmq"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stdakov.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":"2019-11-29T02:58:28.000Z","updated_at":"2022-07-08T04:41:30.000Z","dependencies_parsed_at":"2023-03-13T15:18:49.356Z","dependency_job_id":null,"html_url":"https://github.com/stdakov/docker-rabbit-mongo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stdakov/docker-rabbit-mongo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdakov%2Fdocker-rabbit-mongo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdakov%2Fdocker-rabbit-mongo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdakov%2Fdocker-rabbit-mongo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdakov%2Fdocker-rabbit-mongo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stdakov","download_url":"https://codeload.github.com/stdakov/docker-rabbit-mongo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdakov%2Fdocker-rabbit-mongo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31929880,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T10:35:34.458Z","status":"ssl_error","status_checked_at":"2026-04-17T10:35:09.472Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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","docker-compose","mongo-express","mongodb","rabbitmq"],"created_at":"2024-11-10T14:05:43.544Z","updated_at":"2026-04-17T12:34:46.946Z","avatar_url":"https://github.com/stdakov.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-rabbit-mongo\n\nA ready to use docker-compose configuration with rabbitmq,mongodb,mongo-express.\n\nContainers:\n\n- RabbitMQ\n- MongoDB\n- Mongo-Express\n\n## Installation\n\n```shell\ngit clone https://github.com/stdakov/docker-rabbit-mongo.git\ncd docker-rabbit-mongo/\ndocker-compose up -d\n```\n\n## rabbitMQ\n\n- http://localhost:15672/\n- username: `guest`\n- password: `guest`\n\n## mongo-express\n\n- http://localhost:8081/\n- username: ``\n- password: ``\n\n#### Update container configuration\n\nIf you want to change some container configuration you need to rebuild the container:\n\n```shell\ndocker-compose up -d --no-deps --build {service-name}\n```\n\n#### Connect to container:\n\n```shell\ndocker-compose exec {service-name} bash\n```\n\n#### Restart everything:\n\n```shell\ndocker-compose restart\n```\n\n#### Stop everything:\n\n```shell\ndocker-compose stop\n```\n\n#### Remove everything:\n\n```shell\ndocker-compose down -v\n```\n\n#### Reset:\n\n##### rabbitMQ:\n```shell\ndocker-compose exec rabbit sh -c \"rabbitmqctl stop_app; rabbitmqctl reset; rabbitmqctl start_app\"\n```\nor\n```shell\ndocker exec rabbit sh -c \"rabbitmqctl stop_app; rabbitmqctl reset; rabbitmqctl start_app\"\n```\n\n##### mongoDB:\n```shell\ndocker-compose exec mongo mongo --eval \"\\\nMongo().getDBNames().forEach(function(x) {\\\n  if (['admin', 'config', 'local'].indexOf(x) \u003c 0) {\\\n    Mongo().getDB(x).dropDatabase();\\\n  }\\\n})\\\n\"\n```\nor\n```shell\ndocker exec -it mongo mongo ir --eval \"\\\nMongo().getDBNames().forEach(function(x) {\\\n  if (['admin', 'config', 'local'].indexOf(x) \u003c 0) {\\\n    Mongo().getDB(x).dropDatabase();\\\n  }\\\n})\\\n\"\n```\n\n## In you want to use docker without docker compose:\n\n1. run rabbitMQ \n```shell\ndocker run --name rabbitmq --hostname rabbit  -p 5672:5672 -p 15672:15672 -e RABBITMQ_DEFAULT_USER=guest -e RABBITMQ_DEFAULT_PASS=guest -d rabbitmq:3-management\n```\n2. run mongodb\n```shell\ndocker run --name mongodb -p 27017:27017 -d mongo:latest\n```\n3. remove rabbitmq:\n```shell\ndocker ps -a\ndocker rm -f `\u003ccontainerID\u003e`\ndocker volume ls\ndocker volume rm `\u003cvolumeName\u003e`\n```\nThe docker system prune command will remove all stopped containers, all dangling images, and all unused networks:\n```shell\ndocker system prune\n```\nYou’ll be prompted to continue, use the -f or --force flag to bypass the prompt.\nWARNING! This will remove:\n        - all stopped containers\n        - all networks not used by at least one container\n        - all dangling images\n        - all build cache\nAre you sure you want to continue? [y/N]\n\nIf you also want to remove all unused volumes, pass the --volumes flag:\n\n```shell\ndocker system prune --volumes\n```\nWARNING! This will remove:\n        - all stopped containers\n        - all networks not used by at least one container\n        - all volumes not used by at least one container\n        - all dangling images\n        - all build cache\nAre you sure you want to continue? [y/N] y\n```shell\ndocker kill $(docker ps -q)\ndocker stop $(docker ps -a -q)\ndocker rm $(docker ps -a -q)\ndocker rm -v $(docker ps -a -q)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstdakov%2Fdocker-rabbit-mongo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstdakov%2Fdocker-rabbit-mongo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstdakov%2Fdocker-rabbit-mongo/lists"}