Deployed with Travis and Kubernetes
Now it has mocked support for MySQL databases.
$ git clone https://github.com/tulik/symfony-4-docker-runtime-env.git
$ cd symfony-4-docker-runtime-env
$ docker-compose up
Wait for containers to start, then to http://localhost
If you use another IDE than PHPStorm, go to the remote debugging section of Xdebug documentation.
For a better integration of Docker to PHPStorm, use the documentation.
Edit docker-compose file docker-compose.yml
edit/adjust the configuration as needed for XDEBUG_CONFIG
AND PHP_IDE_CONFIG
environment variables.
If needed add a server for PHP as explained @see Add a debug server section.
Thank to @woprrr for contribution on Xdebug.
Blackfire.io is continuous PHP Performance Testing.
Register your trial, be able to profile both in development and with a paid subscription in production too! Don't forget to get your Blackfire Companion.
symfony-4-docker-runtime-env
├── documentation
│ └── images
├── h2-proxy
│ └── conf.d
├── helm
│ └── symfony
│ ├── charts
│ └── templates
└── symfony
├── bin
├── config
│ ├── packages
│ │ ├── dev
│ │ ├── prod
│ │ └── test
│ └── routes
├── docker
│ ├── nginx
│ │ └── conf.d
│ └── php
├── public
└── src
├── Controller
├── Entity
├── Migrations
└── Repository
Copyright Note: Substantial portions of the solution was introduced by Kévin Dunglas.