Avoid docker-compose.yml rewrite on every save on Project Settings window

Every time when I open the “Project Setting” window in any tab “General, Framework or Targets” the docker-compose.yml file get rewrite with deafult settings base on Target tab on every “Save”.

The normal use is to have different tabs in Targets to points diffferents enviroments, in my case I have created a target name “Cloud” that points to cloud server, and the docker-compose.yml I have modified manually to add more volumes base on my site structure to get persistent data, and others minor changes to propper config to my needs the docker services in my server. But all this get rewrite on every Save in any option on the “Project Settings” windows.

Would be a great idea to allow add more volumes for a specific Target from Project Setting windows, for example in the General tab the “User Uploads Folder” create a volumes in docker-compose.yml, but maybe with a “plus” option like “Style File” to allow to create more custom volumes for the docker-compose.yml.

Is creating a different target in Project Settings not create a new docker compose environment that you can point to and compose up from? Actually I just see your point. What I usually do to work around this is copy what Wappler generate and make a manual compose.yml file that I then modify accordingly to my needs.


Well actually Wappler doesn’t overwrite docker-compose.unlock file but just extends it with the changes it needs.

So any manual additions should be just retained.

Do you have a particular setting that is overwritten?

A post was split to a new topic: Error with docker deploy and certs