Hi everyone! I’m developing a small PHP application for internal use and have installed LAMP module to run it.
The container includes an APP folder (containing the application itself) and a CONFIG folder (kept separate and inaccessible from the internet, containing the configuration files needed for the app to work correctly).
After using it for a few days, I ran into an issue: I noticed that whenever the instance restarts, the CONFIG folder gets deleted, and I have to recreate it every time. Is there a way to fix this?
So you could put the app files to the new public directory and the config files to the app directory.
This way everything should be persistent and the config files (in the app directory) are not accessible from the internet.
As an alternative you could add another volume for your config directory as explained here but it’s not included in the backup.