Checkout this project and create and run the Docker containers using docker-compose:
git clone https://github.com/webdevops/php-docker-boilerplate.git projectname
cd projectname
# copy favorite docker-compose.*.yml to docker-compose.yml
cp docker-compose.development.yml docker-compose.yml
docker-compose up -d
Now create your project inside the docker boilerplate:
For an existing project just put your files into app/
folder or use git to clone your project into app/
.
Use this boilerplate as template and customize it for each project. Put this Docker configuration for each project into separate git repositories.
Now set your existing project repository to be a git submodule in app/
.
Every developer now needs only to clone the Docker repository with --recursive
option
to get both, the Docker configuration and the TYPO3 installation.
For better usability track a whole branch (eg. develop or master) as submodule and not just a single commit. This requires git v1.8.2+.