Docker is a very powerful tool for developing applications that run in the cloud. If you want to get the most out of it, you need to make sure that the way you’re running your code locally matches as closely as possible with how it runs in the cloud.
Today I’m going to show you how to do this, using a simple API server in Python as an example. The code for this episode is available on GitHub: https://github.com/ArjanCodes/2022-docker.
💡 Get my FREE 7-step guide to help you consistently design great software: https://arjancodes.com/designguide.
🛒 GEAR & RECOMMENDED BOOKS: https://kit.co/arjancodes.
🎓 Sign up to Brilliant now and get 20% off the annual subscription: https://brilliant.sjv.io/arjancodes.
Check out @codeSTACKr and @JackHerrington’s channel I mentioned in the video here:
👍 If you enjoyed this content, give this video a like. If you want to watch more of my upcoming videos, consider subscribing to my channel!
💬 Discord: https://discord.arjancodes.com
👀 Code reviewers:
– Ryan Laursen
– James Dooley
– Dale Hagglund
🎥 Video edited by Mark Bacskai: https://www.instagram.com/bacskaimark
1:04 Explaining the code example
3:22 Running the server locally (without Docker)
5:05 Docker & cloud deployment
6:45 Issues with running code in your local development environment directly
8:01 Building and running a Docker container locally
14:40 Docker-compose introduction
15:54 Docker-compose YAML file example
19:32 Dealing with changes in the data
#arjancodes #softwaredesign #python
DISCLAIMER – The links in this description might be affiliate links. If you purchase a product or service through one of those links, I may receive a small commission. There is no additional charge to you. Thanks for supporting my channel so I can continue to provide you with free content each week!