Whenever you push an application, whether with Deploy with balena, balena push or git, the code will replace whatever else was on the device. The fact that you have a container named
main suggests you still only have one container/service running. balena-cam and wifi-connect need to be both included in a docker-compose.yml file in your working directory (on your workstation). If you don’t push your changes to a new GitHub repo and instead point to one of the others, that will be deployed, not your code.
balena push <app-name> pushes the code you edited on your workstation to the device.
Your combined docker-compose.yml should look something like this:
On your workstation, open a shell and grab the balena-cam repo:
git clone https://github.com/balenalabs/balena-cam
Now clone wifi-connect into your balena-cam directory:
$ git clone https://github.com/balena-io/wifi-connect
Place the above docker-compose.yml in the root of your balena-cam directory:
It's a little odd because the balena-cam working directory has a subfolder with the same name.
Hope this helps,