WiFi-connect installation in Raspberry Pi Docker container

Hi @vipulgupta2048

Thanks for you reply. Your(You and Zane) understanding of my work process and your guide to solutions are always the most specific! So I’m always very grateful for you guys!

I’ll answer your questions.

What was the error regarding not able to see Wifi-connect and UI folder inside your container when building using docker-compose?


I just changed this and that in docker-compose.yml to fix the above issue. And at some point it worked. In order to find the exact cause, I revived the changes that had already made from the beginning one by one. A surprising thing happened. When I built the image again by using the original docker-compose.yml, I could see wifi-connect and ui folder installed. It certainly wasn’t working before. Very strange! Anyway, it works now.

In your most recent screenshot of the docker-compose, there are some minor inconsistencies. Since you are doing a deploying a Multi-container app, these are the options you should be having in your docker-compose as mentioned here GitHub - balena-os/wifi-connect: Easy WiFi setup for Linux devices from your mobile phone or laptop.


I have already tried those options in my docker-compose.yml file. I just added those options to only Django service. I haven’t made any changes on the other services because they were working well and I just needed to install and execute wifi-connect only inside Django container.
However, to make everything clear, I’ll try the options above again.

Is there any reason you are not using balenaOS or not know about it? I do see you commented labels in your docker-compose meant for balenaOS. Your process would been quite painless if you are using balenaOS.


Do you mean the OS installed as hostOS? I know balenaOS, but I have never used balena OS.
I burnt Raspberry Lite OS(32 bit with no desktop version) on my Pi4 using Raspberry Pi Imager tool.
I already have the containers that are built and running by my docker-compose.yml. The Dockerfile used to build Django container is based on python3.7.3 image.(You can also see my Dockerfile in above). So I don’t want to change the environments as much as possible.

Sir, I’ll try with the options you suggested above. I’ll let you know when I got any results on it.

Thank you very much.
Anatoli