RabbitMQ is a popular messaging system but it's also something that you probably do not want to install on your personal computer. So using Docker to run RabbitMQ might be handy.
- Find RabbitMB image on Docker Hub
- Find an appropriate tag for 3.6 version with management inside
- Run this image and forward exposed 15672 port to 8081
- Put http://localhost:8081 to the browser and you should see RabbitMQ login screen
- Try to see the running container using docker ps
- Print out logs from the container using docker logs XXX
Very simplified example of a new python app that you developed and now you need to run it in Docker. It contains a basic python web app using Flask. What will be interesting to you is that the webserver by default listens on port 5000.
- Clone or download contents of this directory
- You already have skeleton of Dockerfile, but it is not finished. Try to fill in blank parts - use the documentation page https://docs.docker.com/engine/reference/builder/
- Build the image with tag my-first-application
- Execute the image and publish the port as 8080
- Execute the same image and publish the port as 8081
- Login to you account on Docker Hub and push the image there