This is a Docker-based environment configured for Laravel development.
This solution enables the streamlined creation of Laravel projects without any additional prerequisites. The requirements are that Docker, Docker Compose, Git, and Make be installed on your machine.
git
make
docker
docker-compose
-
Prior to proceeding, clone this repository. HTTPS
git clone https://github.com/Easy2-Dev/Docker-for-Laravel.git
SSH
git clone git@github.com:Easy2-Dev/Docker-for-Laravel.git
-
After completing the cloning process, you can either initiate a new project from within the cloned directory or associate an existing project situated outside of the directory.
$\mathcal{\color{teal} \text{\Large{if}} }$ cloned directory :# Simply execute the make app command.
make app && make up
$\mathcal{\color{teal} \text{\Large{else}} }$ :# Modification of the two directory paths depicted below in the
.env
file is required.Lines 3 to 4 in 1d1a4c3
The two paths presented here necessitate that you indicate the path to your project instead.
APP_VOLUMES_SRC= <your project path>/ STATIC_VOLUMES_PUBLIC= <your project path>/public/
Once you have finished making the modification, you may execute the
make up
command.make up
Lines 1 to 12 in 1d1a4c3
Variable | Description |
---|---|
APP_IMAGE | data2 |
APP_VOLUMES_SRC | data12 |
STATIC_VOLUMES_PUBLIC | data12 |
MYSQL_PORT | data12 |
NGINX_PORT | data12 |
DB_MANAGER_PORT | data12 |
Variable | Description |
---|---|
ADMINER_DEFAULT_SERVER | data2 |
Docker-for-Laravel/envs/temp.app.env
Lines 11 to 16 in 1d1a4c3
Variable | Description |
---|---|
DB_CONNECTION | data2 |
DB_HOST | data12 |
DB_PORT | data12 |
DB_DATABASE | data12 |
DB_USERNAME | data12 |
DB_PASSWORD | data12 |
Docker-for-Laravel/envs/temp.mysql.env
Lines 1 to 2 in 1d1a4c3
Variable | Description |
---|---|
MYSQL_ROOT_PASSWORD | data2 |
MYSQL_DATABASE | data12 |