A set of docker resources to get quickly started on a symfony project
- Copy the
docker
directory, thedocker-compose.yml
, the.env
andMakefile
in your symfony project - Remove useless parts in each of theses files
- Change values in
.env
file - Update
app_dev.php
to allow dockerized applications. (Comment the code from line 12 to 19)
Then run your containers:
docker network create dev
docker-compose -f docker/proxy-docker-compose.yml up -d # run the proxy
docker-compose -f docker/elasticsearch-docker-compose.yml up -d # run the elasticsearch
docker-compose up -d # run the entire stack
If you want to install npm
& bower
packages, you can use the Makefile commands:
$ make npm-install
$ make bower-install
- Easily change your php version from the
.env
- Use the makefile to auto complete daily commands
- Display all logs (proxy, nginx, php) with the
docker-compose logs -f command
.
To execute units and functionals tests:
$ make phpunit sources=src
To execute code sniffer :
$ make phpcs sources=src
'src' is the default sources value.
Use the greatness of the ELK stack