-
Notifications
You must be signed in to change notification settings - Fork 9
Generate a Laravel project
In order to generate your docker-compose you need to open your favority internet browser, go to https://okty.io/ and press "Start" !
A laravel application is a typical php application and need 4 containers to work :
- Nginx : Handle HTTP requests
- PHP : Generate your website content and execute all the magic things
- MySQL : Store your data
- Adminer : Manage your database (Optional)
We'll start with Mysql and Adminer !
Select Mysql in the list
You may leave the first group with default values
In the second configuration group "Connection" you have to specify your authentication data
Once all the fields are filled, save your container
In the list, select adminer.
Adminer is simple and small container that doesn't require much configuration
That's why we'll leave all the configuration as is it and save the container
PHP is generally the most complicated container to configure because of all the extensions available and required depending of the project you're working on.
Don't worry ! Okty is here to help you
The first step is to go search on the laravel documentation and check what are the prerequisites
Luckily, most of the prerequisites are already satisfied by default !
The only php extension we have to add is PDO_Mysql.
You may find information about php extensions and which one is installed on a empty container on this wiki page