0
I started working with docker
recently and there is a doubt and in a preparation for an environment wordpress lamp
, I stumbled upon climbing my bank and my files .
The idea was to leave everything inside a repository inside the git-hub
that I could clone from anywhere create the image and restore my site, however the repository of git-hub
has a limit of 100 megas.
How I can work effectively with the bank in these cases using Docker?
You have to be part of an image to upgrade to the server or treat the sql
the part?
Your doubt would be the ideal way to see your Docker image?
– Giuliana Bezerra
When working with Docker to have a container of a wordpress, the correct way to work with the database would be he be part of the image ? pq I am studying these codes of a Docker -Compose and in case it creates the image. My question is whether I work so always on top of this script that prepares everything and creates the image and climbs the bank or as you said keep it straight in the image. , for example, I thought about keeping everything on github but it doesn’t support the bank file because it’s too big.
– Rodrigo Givisiez
So I will comment here because it is my opinion. I would do in Dockerfile the creation of the bank, but would be in a container different from the application. There is a standard called data-only container that recommends this separation: http://container42.com/2013/12/16/persistent-volumes-with-docker-container-volumeopattern/.
– Giuliana Bezerra