In the first place, we need a web server that can support someone specific php version.
- Web server:
nginx
- Php version:
php-7.4
When we need two containers. We will create a docker-composer.yml
usign this structure.
# Main Directory └── docker-laravel └── docker-compose.yml └── README.md └── phpfpm └── Dockerfile └── nginx └── default.conf └── Dockerfile └── laravel-project # Laravel Project └── app.php └── ... └── composer.json
Or just we download it in a chosen location using following command:
git clone https://github.com/automatape/docker-laravel.git
cd docker-laravel
For create and start the container (in first plane)
docker-compose up
Top comments (0)