A basic docker-compose config for Laravel (and probably other things as well)
- nginx
- php-fpm 7.1 with xdebug and blackfire
- mysql 5.7
Laravel installation: app
Mysql data: mysql/data
- Set domain name in
docker-compose.yml
. - Change PHP extensions in
php/Dockerfile
if necessary.
If you are using nginx-proxy, use the 0.1
tag make sure the external_name setting matches the name of the network used by the nginx-proxy container.
If you are using traefik, check if the external network name is correct and change the labels of the webserver container if necessary.