i was playing with docker until i found why it is not showing the logs
The problem was here:
CMD ["python", "main.py"]
You should include "-u"
flag it means run this in unbuffered mode, so your line would be like this:
CMD ["python", "-u", "main.py"]
Try to rebuild docker and see if it works.