Dockge seems to overwrite compose file with previous values even after saving #443
Open
2 tasks done
Labels
bug
Something isn't working
🛡️ Security Policy
Description
I have a compose file for a service called "Tauticord".
In it i specify my discord server id via env variable. I edited that variable with new id in the dockge webui, and saved it. Then it shows the updated changes. But once i refresh the webpage, the changes are reverted and it starts showing old value.
Now the weird part is, the reverted changes are only in the webui of dockge. If i go and manually check my compose.yml file, it has my new edited changes.
But if i now deploy the stack via dockge webui, it uses the old value and overwrites the compose file on disk.
I have tried refreshing the webpage multiple time. I am even accessing it directly via IP:PORT to prevent any issues of caching due to reverse proxy.
I have also tried the "Scan Stacks Folder" button in webui, but it still shows the old value in webui and new value in actual compose file on disk.
Here's the env variable in webui of dockge
![image](https://private-user-images.githubusercontent.com/11052427/311732787-c69bdc98-e456-43c2-94bd-1726d9ffe5e3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MzI4NzUsIm5iZiI6MTczODkzMjU3NSwicGF0aCI6Ii8xMTA1MjQyNy8zMTE3MzI3ODctYzY5YmRjOTgtZTQ1Ni00M2MyLTk0YmQtMTcyNmQ5ZmZlNWUzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDEyNDkzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRmZDFiZDdkMDJhZWRhNGYyOGJhNWJiOTk3ZGVjOTdlODRkZTJhMjUxMTA4MjgwOGFjNTdmNjFhNmM3MWQ2YjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.uSUcbdx4bsA3mQQPw03o2LIfbCLjM3dItqa06Gq_C5k)
Here's it's value that's in compose file accessed directly
![image](https://private-user-images.githubusercontent.com/11052427/311733198-e0d4c161-a627-4674-ae4e-cc58a959e899.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MzI4NzUsIm5iZiI6MTczODkzMjU3NSwicGF0aCI6Ii8xMTA1MjQyNy8zMTE3MzMxOTgtZTBkNGMxNjEtYTYyNy00Njc0LWFlNGUtY2M1OGE5NTllODk5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDEyNDkzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRlNTg0YmI0YmMwM2IyNDNmMDliMWRjODA1N2RjMzVkZTNlOGJiNWU2YzM3Nzg3NmE3ODFmNjMyZThhY2E3MzYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.qGx6ieOHFMRglNhxmrZI2tOCqAIEKPbiWN9O_NioWfY)
👟 Reproduction steps
👀 Expected behavior
It should retain the new values
😓 Actual Behavior
It's not retaining the new value
Dockge Version
1.4.2
💻 Operating System and Arch
Ubuntu 20.04 x64
🌐 Browser
Firefox
🐋 Docker Version
Docker version 25.0.3, build 4debf41
🟩 NodeJS Version
No response
📝 Relevant log output
Nothing shown in logs when editing a stack.
The text was updated successfully, but these errors were encountered: