pgnotify-emitter
Nodejs aplicacion to publish messages to emitter server via postgresql notify
269
The pgnotify-emitter project is a tool that allows sending notifications from a PostgreSQL database to emitter. 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-emitter \
-e POSTGRES_HOST=localhost \
-e POSTGRES_PORT=5432 \
-e POSTGRES_DB=test \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=postgres \
-e EMITTER_HOST=localhost \
-e EMITTER_PORT=8080 \
-e EMITTER_USER=rabbit \
-e USE_TEMPLATE=true \
pgnotify-emitter:latest
Now that you have run the pgnotify-emitter Docker container, you can start using the tool to send notifications from your PostgreSQL database to emitter. 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_emitter.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-emitter:latest
Content type
Image
Digest
sha256:20257b9a0…
Size
260 Bytes
Last updated
over 1 year ago
docker pull robertbruno/pgnotify-emitter:sha256-602c947fe09e3fea36ba5a2cf0109eaa59070d31e2b03e9d72f00e2541c48a19.sig