2022-11-30 02:28:31 +01:00
|
|
|
FROM rabbitmq:3-management-alpine
|
|
|
|
|
2022-12-02 22:07:55 +01:00
|
|
|
LABEL dev.egommerce.image.author="Piotr Biernat"
|
|
|
|
LABEL dev.egommerce.image.vendor="Egommerce"
|
|
|
|
LABEL dev.egommerce.image.service="api-eventubus"
|
|
|
|
LABEL dev.egommerce.image.version="1.0"
|
2022-11-30 02:28:31 +01:00
|
|
|
|
|
|
|
COPY ./api-eventbus/etc /etc/rabbitmq
|
2022-12-06 06:40:56 +01:00
|
|
|
COPY ./api-eventbus/entrypoint.sh ./api-eventbus/wait-for-it.sh /
|
2024-07-20 13:30:27 +02:00
|
|
|
COPY ./.app.config /
|
2022-11-30 02:28:31 +01:00
|
|
|
|
2024-12-05 16:40:05 +01:00
|
|
|
RUN apk update && apk add ca-certificates
|
2024-07-20 13:30:27 +02:00
|
|
|
# RUN rabbitmq-plugins enable --offline rabbitmq_prometheus
|
2022-11-30 02:28:31 +01:00
|
|
|
|
|
|
|
EXPOSE 5672
|
2022-12-06 06:40:56 +01:00
|
|
|
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
CMD ["rabbitmq-server"]
|
2024-07-20 13:30:27 +02:00
|
|
|
|
|
|
|
HEALTHCHECK --interval=5s --timeout=1s --retries=20 CMD rabbitmq-diagnostics -q ping >/dev/null || exit 1
|