added Dockerfile for cost rabbit image

This commit is contained in:
Kfir Dayan 2023-07-08 16:08:35 +03:00
parent e3268b4633
commit c5164fdba1
3 changed files with 7 additions and 7 deletions

5
infra/docker/Dockerfile Normal file
View file

@ -0,0 +1,5 @@
FROM rabbitmq:3.8-management
RUN apt-get update && apt-get install -y wget unzip
RUN wget https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases/download/v3.8.0/rabbitmq_delayed_message_exchange-3.8.0.ez
RUN mv rabbitmq_delayed_message_exchange-3.8.0.ez $RABBITMQ_HOME/plugins/
RUN rabbitmq-plugins enable --offline rabbitmq_delayed_message_exchange

View file

@ -16,7 +16,7 @@ services:
expose: expose:
- 27017 - 27017
rabbitmq: rabbitmq:
image: heidiks/rabbitmq-delayed-message-exchange:latest image: todorabbit:latest
restart: always restart: always
ports: ports:
- 5672:5672 - 5672:5672
@ -27,11 +27,6 @@ services:
environment: environment:
- RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER} - RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS} - RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS}
command: |
bash -c "
rabbitmq-plugins enable rabbitmq_delayed_message_exchange && \
rabbitmq-server
"
expose: expose:
- 5672 - 5672
- 15672 - 15672

View file

@ -9,7 +9,7 @@ Content-Type: application/json
{ {
"title": "Go to the gymNEW!!!", "title": "Go to the gymNEW!!!",
"description": "Go to the gym at 8pm", "description": "Go to the gym at 8pm",
"due_date": "2023-07-08T15:24:00.000Z" "due_date": "2023-07-08T16:02:00.000Z"
} }
### update request ### update request