This is a minimalistic example of an Erlang distributed Producer-consumer program. The purpose of this project is mainly the communication of Erlang processes through Docker container.
Each of the three actors has a dedicated folder, Erlang file and Dockerfile. The Docker images can be found on Docker hub.
- First of all make sure you have a proper docker installation with docker-compose.
- Then bring up the project
docker-compose up -d
- When done, audit the logs of any of the three containers:
<container_name>
can be anything betweenproducer.com
,consumer.com
orbuffer.com
docker logs -f <container_name>
- You should be able to see the state of the container.