A set of docker resources to get quickly started on a symfony project
- Copy the
dockerdirectory, thedocker-compose.yml, the.envandMakefilein your symfony project - Remove useless parts in each of theses files
- Change values in
.envfile - Update
app_dev.phpto 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 stackIf 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=srcTo execute code sniffer :
$ make phpcs sources=src'src' is the default sources value.
Use the greatness of the ELK stack