Site icon Learning & Doing

Install Rabbitmq via Docker

rabbitmq-docker

Untuk kali ini saya akan membahas mengenai cara Install Rabbitmq via Docker.

Berikut langkah nya :

1. Install terlebih dahulu docker dan docker compose bisa lihat di sini
2. Create file docker-compose.yaml

version: "3.2"
services:
  rabbitmq:
    image: rabbitmq:3-management-alpine
    container_name: 'rabbitmq'
    ports:
        - 5672:5672
        - 15672:15672
    volumes:
        - ~/.docker-conf/rabbitmq/data/:/var/lib/rabbitmq/
        - ~/.docker-conf/rabbitmq/log/:/var/log/rabbitmq
    networks:
        - rabbitmq_go_net

networks:
  rabbitmq_go_net:
    driver: bridge

3. kemudian Build docker

docker-compose up  atau docker-compose up -d
Exit mobile version