pgnotify-rabbitmq
Nodejs aplicacion to publish messages to rabbitmq via postgresql notify
698
The pgnotify-rabbitmq project is a tool that allows sending notifications from a PostgreSQL database to RabbitMQ. This is useful for implementing microservices architectures or distributed applications that need to communicate asynchronously.
Form more info visit
You can use environment variables to configure the service, for more info about it see:
docker run -d \
--name pgnotify-rabbitmq \
-e POSTGRES_HOST=localhost \
-e POSTGRES_PORT=5432 \
-e POSTGRES_DB=test \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=postgres \
-e RABBITMQ_HOST=localhost \
-e RABBITMQ_PORT=5672 \
-e RABBITMQ_USER=rabbit \
-e RABBITMQ_PASSWORD=rabbit \
-e USE_TEMPLATE=true \
pgnotify-rabbitmq:latest
Now that you have run the pgnotify-rabbitmq Docker container, you can start using the tool to send notifications from your PostgreSQL database to RabbitMQ. See the project documentation for more information on how to configure and use the tool
To avoid conflicts in configuration files, if you want to use environment variables you must specify USE_TEMPLATE to true
Optional you can set HANDLE_ACK Environment variable to run SELECT pgnotify_rabbitmq.handle_ack(); at app startup.
You can also use configuration files config.yaml:
docker run -d -v $(pwd)/config.yaml:/opt/config.yaml robertbruno/pgnotify-rabbitmq:latest
Content type
Image
Digest
sha256:2e5a21bb2…
Size
261 Bytes
Last updated
over 1 year ago
docker pull robertbruno/pgnotify-rabbitmq:sha256-d378a02518251c16e73e048e1d05de64d03ca8078b6a179447872e10da8e5c77.sig