{"id":20671439,"url":"https://github.com/fajarbc/learn-rabbitmq-docker","last_synced_at":"2026-04-18T18:34:28.448Z","repository":{"id":115653299,"uuid":"387592988","full_name":"fajarbc/learn-rabbitmq-docker","owner":"fajarbc","description":"Learn how to run RabbitMQ using Docker and implement the publisher and subscriber in NodeJS using amqplib module.","archived":false,"fork":false,"pushed_at":"2021-07-19T21:03:44.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T17:29:50.688Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/fajarbc.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-07-19T21:01:09.000Z","updated_at":"2021-07-19T21:03:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"86f7c267-6612-4ed7-b73f-8f537d165648","html_url":"https://github.com/fajarbc/learn-rabbitmq-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fajarbc/learn-rabbitmq-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fajarbc%2Flearn-rabbitmq-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fajarbc%2Flearn-rabbitmq-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fajarbc%2Flearn-rabbitmq-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fajarbc%2Flearn-rabbitmq-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fajarbc","download_url":"https://codeload.github.com/fajarbc/learn-rabbitmq-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fajarbc%2Flearn-rabbitmq-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31980159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T17:30:12.329Z","status":"ssl_error","status_checked_at":"2026-04-18T17:29:59.069Z","response_time":103,"last_error":"SSL_read: 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":[],"created_at":"2024-11-16T20:27:17.038Z","updated_at":"2026-04-18T18:34:28.431Z","avatar_url":"https://github.com/fajarbc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"* check if image `rabbitmq` already exists?\n```\ndocker image ls\n```\n\n*if image rabbitmq did NOT exists*\n\n* to create image `rabbitmq`\n```\ndocker pull rabbitmq\n```\n\n* check if volume `rabbitmq_data` exists\n```\ndocker volume ls\n```\n\n* to remove volume\n```\ndocker volume rm rabbitmq_data\n```\n\n* to create volume\n```\ndocker volume create rabbitmq_data \n```\n\n* to run image `rabbitmq` in detach (in background) mode and expose port(s) *15672* adn *5672*, attach volume rabbitmq_data to `var/lib/rabbitmq/mnesia/rabbit@my-rabbit` with `@my-rabbit` is host (could be change)\n```\ndocker run --name rabbitmq --hostname my-rabbit -p 15672:15672 -p 5672:5672 -v rabbitmq_data:/var/lib/rabbitmq/mnesia/rabbit@my-rabbit -d rabbitmq:3 \n```\n\n* check if the rabbitmq is running, you can visit\n```\nhttp://localhost:15672\n```\n\n* to verify the publish and subscribe function, you can run receive.js and send.js in different terminal (following https://www.rabbitmq.com/tutorials/tutorial-two-javascript.html )\n\n* run `receive.js`\n```\nnode receive.js\n```\n\n* run `send.js`\n```\nnode send.js Your message goes here\n```\n\n![image](https://user-images.githubusercontent.com/31872453/126227082-d4935cce-5501-4c44-a2ad-8e9f5639c8b8.png)\n\n\n\n\n* to start container `rabbitmq`\n```\ndocker container start rabbitmq\n```\n\n* to restart container `rabbitmq`\n```\ndocker container restart rabbitmq\n```\n\n* to stop container `rabbitmq`\n```\ndocker container stop rabbitmq\n```\n\n* to remove container `rabbitmq` (you have reinitiate container from rabbitmq image again in order to start again after container is removed)\n```\ndocker container rm rabbitmq\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffajarbc%2Flearn-rabbitmq-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffajarbc%2Flearn-rabbitmq-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffajarbc%2Flearn-rabbitmq-docker/lists"}