producer-rabbitmq-go
The stock-publisher Go app simulates stock transactions for MSFT, TSLA, and AAPL.
227
The stock-publisher is a Go application that simulates stock transaction events (buy or sell) for companies like Microsoft (MSFT), Tesla (TSLA), and Apple (AAPL). It connects to RabbitMQ and publishes synthetic stock price data to dedicated queues for each stock.
This Docker image provides a containerized environment for running the stock-publisher application. It includes all the necessary dependencies and configurations to seamlessly deploy and run the application.
To use this Docker image, you can pull it from the Docker Hub repository using the following command:
docker pull buergi1986/producer-rabbitmq-go:tagname
Replace tagname with the desired version or tag of the image.
Once pulled, you can run the container using the appropriate Docker commands, such as docker run. Make sure to provide any necessary environment variables or configuration options as per your requirements.
The Docker image supports the following environment variables:
RABBITMQ_URL: The URL of the RabbitMQ server (default: amqp://stockmarket:supersecret123@localhost:5672/)TICKER_INTERVAL: The interval in milliseconds between producing new stock price (default: 1)Here's an example of how to run the container:
docker run -e RABBITMQ_URL=amqp://rabbitmq-server:5672/ -e TICKER_INTERVAL=100 buergi1986/producer-rabbitmq-go:latest
Content type
Image
Digest
sha256:f4e961401…
Size
6.9 MB
Last updated
about 2 years ago
docker pull buergi1986/producer-rabbitmq-go