Our current setup consists of three containers: a WordPress container, a MySQL container and a data volume container, tied together with Crane.
The main problem with our current setup using a VOLUME
container as file storage is that we need a way into the volume to edit files. As of now, the only way to get into it is by mounting it on another container.
Another problem is that we don't version control our source code. We have just downloaded WordPress and some plugins and left it there. What if we update WordPress or make some other changes? We surely want to have that under version control.
If we want to keep the application architecture as it is, there are two options:
Create a new container that mounts our data volume container, install it, and get access to it with SSH
Install and open access to SSH in our WordPress container
With SSH installed, we can access the containers shell from a remote machine, and so, we can install Git to version control to our...