To add an image (software), just edit the `docker-compose.yml` and add your container details, to do so you need to be familiar with the [docker compose file syntax](https://docs.docker.com/compose/compose-file/).
...
...
@@ -422,7 +422,7 @@ To add an image (software), just edit the `docker-compose.yml` and add your cont
<br>
<aname="View-the-Log-files"></a>
#### View the Log files
### View the Log files
The Nginx Log file is stored in the `logs/nginx` directory.
However to view the logs of all the other containers (MySQL, PHP-FPM,...) you can run this:
Before installing PHP extensions, you have to decide whether you need for the `FPM` or `CLI` because each lives on a different container, if you need it for both you have to edit both containers.
...
...
@@ -610,7 +611,7 @@ The PHP-CLI extensions should be installed in `workspace/Dockerfile`.
<br>
<aname="Change-the-PHP-FPM-Version"></a>
#### Change the PHP-FPM Version
### Change the PHP-FPM Version
By default **PHP-FPM 7.0** is running.
>The PHP-FPM is responsible of serving your application code, you don't have to change the PHP-CLI version if you are planing to run your application on different PHP-FPM version.
...
...
@@ -657,7 +658,7 @@ For more details about the PHP base image, visit the [official PHP docker images
<br>
<aname="Change-the-PHP-CLI-Version"></a>
#### Change the PHP-CLI Version
### Change the PHP-CLI Version
By default **PHP-CLI 7.0** is running.
>Note: it's not very essential to edit the PHP-CLI verion. The PHP-CLI is only used for the Artisan Commands & Composer. It doesn't serve your Application code, this is the PHP-FPM job.
...
...
@@ -678,14 +679,14 @@ Right now you have to manually edit the `Dockerfile` or create a new one like it
<br>
<aname="Misc"></a>
### Misc
### [Misc]
<aname="Run-Docker-Virtual-Host"></a>
#### Run a Docker Virtual Host
### Run a Docker Virtual Host
These steps are only for **Windows & MAC** users *(Linux users don't need a virtual host)*:
...
...
@@ -715,7 +716,7 @@ eval $(docker-machine env)
<br>
<aname="Find-Docker-IP-Address"></a>
#### Find your Docker IP Address
### Find your Docker IP Address
**On Windows & MAC:**
...
...
@@ -755,7 +756,7 @@ docker0 Link encap:Ethernet HWaddr 02:42:41:2d:c4:24
<br>
<aname="Use-custom-Domain"></a>
#### Use custom Domain (instead of the Docker IP)
### Use custom Domain (instead of the Docker IP)
Assuming your custom domain is `laravel.dev` and your current `Docker-IP` is `xxx.xxx.xxx.xxx`.