This is a complete stack for running a Symfony 4.4 LTS project with Docker. This project is created with a learning purpose in mind and is not suitable for production.
- PHP 7.4
- NGINX
- MySQL 8
- Symfony 4.4 LTS
- Webpack encore
- Elasticsearch 7.9.2
- Logstash 7.9.2
- Kibana 7.9.2
The images are build upon Alpine Linux. If you want to update the Dockerfiles, you may need to refer to the Alpine Linux documentation.
-
Clone this repository.
git clone git@github.com:RSHKDL/docker-symfony.git
-
Create your docker-compose.
cp docker-compose.yml.dist docker-compose.yml
-
Replace the
<variables>
with your own values. -
TODO
-
Create your kibana.yml
cp elastic-stack/kibana/kibana.yml.dist elastic-stack/kibana/kibana.yml
-
Replace the
<variables>
with your own values. -
Access Kibana at
localhost:<the-port-defined-in-docker-compose>
- Connect to php container :
make sh-php
- Execute all tests suite :
bin\phpunit
- Check your version :
bin\phpunit -v
On first use, Phpunit will download all dependencies. More information about Phpunit can be found on the Phpunit documentation (version dependent) or on the Symfony documentation.