Middleware that transforms MailerQ messages to HttpCaller-compatible JSON format
285
This repository contains the built versions for MailerQ AmqpHttp. Dockerfile is available at GitHub.
The MailerQ AmqpHttp is typically configured using environment variables. While you can provide a custom configuration file, using environment variables is the recommended and most common approach for Docker deployments.
The default configuration file is stored at /etc/copernica/amqphttp.txt inside the container. All settings from this file can be overridden using environment variables.
The following options can be configured for the MailerQ AmqpHttp. These settings control how the application reads out the MailerQ result queue from RabbitMQ, converts the messages, and publishes them back to a different queue, where they can be picked up by the HTTP caller.
AMQPHTTP_RABBITMQ_ADDRESS: The address in amqp://user:password@hostname/vhost format. This is a required setting.AMQPHTTP_RABBITMQ_QUEUE: The name of the queue from which messages are read. This is a required setting.AMQPHTTP_RABBITMQ_EXCHANGE: The exchange to which the converted messages are published. This is a required setting.AMQPHTTP_RABBITMQ_ROUTINGKEY: The name of the routing key for the converted messages. If you specify a format of exchange:routingkey, all messages published to the specified exchange with the specified routing key will be consumed.AMQPHTTP_RABBITMQ_QOS: Quality of service specification defining how many messages to consume.See all supported options in documentation.
Any setting from the /etc/copernica/amqphttp.txt configuration file can be overridden using environment variables. To create the environment variable name:
-) with underscores (_).For example, the rabbitmq-address setting becomes the AMQPHTTP_RABBITMQ_ADDRESS environment variable.
Besides environment variables, you can also configure AmqpHttp using the following methods:
/etc/copernica/amqphttp.txt.docker run command. For example: docker run mailerq/amqphttp --rabbitmq-address amqp://....# Build the Docker image
docker build ./MailerQ-AmqpHttp/ -t mailerq/amqphttp
# Example using a config file
docker run -v /path/to/minimal-config.txt:/etc/copernica/amqphttp.txt mailerq/amqphttp
# Example using environment variables
docker run -d \
-e AMQPHTTP_RABBITMQ_ADDRESS="amqp://user:password@host:port/vhost" \
-e AMQPHTTP_RABBITMQ_QUEUE="my_queue" \
-e AMQPHTTP_RABBITMQ_EXCHANGE="my_exchange" \
mailerq/amqphttp
# Example using command line arguments
docker run mailerq/amqphttp --rabbitmq-address amqp://user:password@host:port/vhost --rabbitmq-queue my_queue --rabbitmq-exchange my_exchange
Content type
Image
Digest
sha256:c5a3a757e…
Size
36 MB
Last updated
over 1 year ago
docker pull mailerq/amqphttp