PHP-DEV is a small package that includes a web server, PHP and some tools needed to develop a web application. You can easily decide which version of PHP you want to use and whether you want to start an Apache or a Nginx webserver by setting the values in a docker-compose.yml. We recommend using Cyb10101/docker-global as a wrapper for your projects, since this Dockerfile has been built keeping that in mind.
- Nginx Reverse Proxy
- TYPO3 configuration >=8
- TYPO3 configuration <=7
- Change docker project name
- ImageMagick or GraphicMagick
- Environment variables
- XDebug
- Project templates
- Set user and group id
- Vulnerabilities
- Docker: cyb10101/php-dev
- Docker: webdevops/php-apache-dev
- Docker: webdevops/php-nginx-dev
- Github: webdevops/Dockerfile
- Github: pluswerk/php-dev
- Composer (
composer
) - WP-Cli (
wp-cli
) - NPM (
npm
) - Yarn (
yarn
) - jq: JSON processor (
jq
) - yq: YAML/XML processor (
yq
,xq
)
This is an example of a docker-compose.yml file. It is enough to put this file into the project, configure it and start the Docker container. Further information can be found in the documentation.
Example file for development: docker-compose.yml
Create a docker-compose.yml like shown above.
Change all your settings. Mainly the VIRTUAL_HOST
, WEB_DOCUMENT_ROOT
and maybe the application context.
Then you can copy the start.sh into your project and start it.