Rossonius Pun
Volume storage not available while building from Docker image?
I'm looking to deploy the
mediawiki
Docker image as a service. After deploying, it correctly starts up apache as a web service, and the first connection is then walked through a MediaWiki set-up process that asks for relevant info like DB authentication and customizable options for the website. At the end of the process, a file LocalSettings.php
is generated that must be manually downloaded and then re-uploaded to the root folder for the website (i.e., /var/www/html).
Since this calls for persistent information to be available between re-deploys of the service, it calls for a volume. But whenever I attach a volume, it appears to clobber the contents of /var/www/html that already exist in the container: after mounting a new volume to my service in Railway, attempting to connect to the website gives me a 'Forbidden' access error since it cannot find index.php
. This also happens when I mount the volume to an empty service before loading the MediaWiki docker image.
Is there a proper way to mount a volume that would let me persist files generated by the container's build process alongside a new file like LocalSettings.php
that I could add later (perhaps through the FileBrowser template)?44 replies