DEV Community

Abdulbasid Guled
Abdulbasid Guled

Posted on

Working with Docker and Python: Learning as I go

Still alive and living well. I assume the same for you guys as well.

Not too much has changed for me recently. Trying to find an internship opportunity is tough, so I've been making the most of my free time and continued working with stuff that I'm unfamiliar with.

The big thing for me is a product microservice that will operate entirely via docker. I'm pretty poor right now so hosting the site is not an option, but having it run via docker gives me alot of options. I can separate the different pieces apart and have them run independently without having to worry about one piece potentially failing and ruining another aspect. Almost like I worked on something like this myself...cough Telescope cough.

Anyway, my server portion is operating different from how I would usually go about making it. I'm using Flask with Python this time as opposed to NodeJS. I really loved working with python and wanted to get more exposure to other web frameworks other than express for making web servers. This was a pain for me to learn though, especially when trying to tie the mongodb database together.

Right now, my server is working fine. I plan to have sensitive information stored in a .env file as usual. Grabbing them was difficult in coordination with the docker-compose file I had going but I plan on do this probably after I finish my frontend service, which is going to be developed in Vue! Need more frontend love and been wanting an excuse to use VueJS for awhile.

My experience with volumes and redis has helped me alot with getting my mongodb service working. Redis would be amazing to use in the future and I definitely have plans to use it in the future. I probably will focus purely on JS/TS after this service is complete though. I feel more in tuned with JS and what it brings vs Python for my use cases. It's also 1 language so easier to work with. You can follow along with me here.

Now to find some Telescope bugs to fix. Or maybe they'll find me, either way, we hopefully get something exciting to do.

Top comments (0)