From 0be0958c8133ba7aac533e1c2356ad6f690ec49a Mon Sep 17 00:00:00 2001 From: Konstantinos Panayiotou Date: Wed, 5 Jun 2024 19:54:46 +0300 Subject: [PATCH] Launch rabbitmq with compose --- brokers/amqp/docker-compose.yml | 10 ++++++++++ brokers/amqp/launch_rabbitmq_docker.sh | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 brokers/amqp/docker-compose.yml diff --git a/brokers/amqp/docker-compose.yml b/brokers/amqp/docker-compose.yml new file mode 100644 index 0000000..6ae987b --- /dev/null +++ b/brokers/amqp/docker-compose.yml @@ -0,0 +1,10 @@ +services: + rabbitmq: + image: rabbitmq:3-management-alpine + container_name: 'rabbitmq' + ports: + - 5672:5672 + - 15672:15672 + volumes: + - ~/.conf/rabbitmq/data/:/var/lib/rabbitmq/ + - ~/.conf/rabbitmq/log/:/var/log/rabbitmq diff --git a/brokers/amqp/launch_rabbitmq_docker.sh b/brokers/amqp/launch_rabbitmq_docker.sh index 25d0a98..39e064e 100755 --- a/brokers/amqp/launch_rabbitmq_docker.sh +++ b/brokers/amqp/launch_rabbitmq_docker.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash -docker run --rm -it --hostname rabbit -p 15672:15672 -p 5672:5672 rabbitmq:3-management +docker compose down && docker compose up --remove-orphans