Create the following files inside your Laravel project.
- docker-compose.yml.example
- docker-compose.yml (a copy of .example file with the values overridden if necessary)
- docker/common.yml
Add the following to the .gitignore
file in the main project.
docker/.data
docker-compose.yml
Run using the following command. You can omit -p
switch if the laravel project is named aptly.
docker-compose -p appname up -d