I am trying to dockerize the following data pattern from ZMQ sample example to docker containers
My docker-compose.yml is pasted here
command: [“python”, “-u”, “./client.py”]
command: [“python”, “-u”, “./worker.py”]
command: [“python”, “-u”, “./broker.py”]
I also modified respective py files to translate URIs using os.environ.get
address = os.environ.get(‘CLIENT_URI’)
This sample examples (with client, worker and broker files) works perfectly fine when run as standalone applications (in separate terminals) but when I dockerize it as containers, I simply DO NOT see any output.
The images gets built, containers gets launched without any error, but I DO NOT see the output from print statement (as I see it in standalone mode)
Any help is appreciated.