You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 15, 2019. It is now read-only.
@@ -86,9 +84,9 @@ Once everything has been installed, open your favorite web browser and copy / pa
86
84
| tail-nginx | Displays the Docker's logs of the NGINX container. |
87
85
| tail-mysql | Displays the Docker's logs of the MySQL container. |
88
86
89
-
# Dive in
87
+
##Dive in
90
88
91
-
## How does it work?
89
+
###How does it work?
92
90
93
91
There are three important files:
94
92
@@ -103,7 +101,7 @@ As these files are templates, they are not used directly. That's why you have to
103
101
104
102
For security concern, these three files have been added in the `.gitignore` file as they contain sensible data like the MySQL database password and so on.
105
103
106
-
## Project structure
104
+
###Project structure
107
105
108
106
This project will run three containers:
109
107
@@ -118,25 +116,25 @@ This project will run three containers:
118
116
* The `apache/volume` folder is where your source code must be located. It is mapped with the `/var/www/html` folder on the Apache container.
119
117
* The `mysql/volume` has been created by the MySQL container. It is where your database is persisted on the host.
120
118
121
-
## Link your PHP application to your MySQL database
119
+
###Link your PHP application to your MySQL database
122
120
123
121
It is actually quite simple. In your Apache container, the hostname of the MySQL database is equal to the variable's value `MYSQL_SERVICE_NAME` defined in the `.env` file. Also, just use the port `3306` and the credentials defined in the `.env` file.
124
122
125
-
## Manage your database
123
+
###Manage your database
126
124
127
125
The simplest way is to access directly to the MySQL cli using `make mysql-cli`.
128
126
129
127
If you want to manage your database with a more powerful tool (like MySQL Workbench), open your `.env` file in your favorite editor, set the variable `MYSQL_ENABLE_PORTS_MAPPING=1`, update if needed the variable `MYSQL_HOST_PORT_TO_MAP` and finally run `make kickoff`.
130
128
131
129
You are now able to access on your host to your MySQL database using `127.0.0.1` and the port defined in the variable `MYSQL_HOST_PORT_TO_MAP`. See also: [Use MySQL Workbench to manage your database](docs/mysql_workbench.md)
132
130
133
-
## Xdebug support
131
+
###Xdebug support
134
132
135
133
Open your `.env` file in your favorite editor, set the variable `APACHE_ENABLE_XDEBUG=1` and run `make kickoff`.
136
134
137
135
It will enable Xdebug on the Apache container. See also: [Use Xdebug with PhpStorm](docs/xdebug.md)
138
136
139
-
## SSL support
137
+
###SSL support
140
138
141
139
Open your `.env` file in your favorite editor, set the variable `NGINX_ENABLE_SSL=1` and run `make kickoff`.
142
140
@@ -146,25 +144,25 @@ You will find more information on how to make SSL work here: https://github.com/
146
144
147
145
If you're using SSL Certificate Chains, we advise you to read the official NGINX documentation: https://www.nginx.com/resources/admin-guide/nginx-ssl-termination/#cert_chains
148
146
149
-
## Multiple environments/projects on the same host
147
+
###Multiple environments/projects on the same host
150
148
151
149
As you long as each `NGINX_PROXY_NAME` and `PROXY_NETWORK` variables in your `.env` files have the same values, you are able to run as many environments/projects as you need.
152
150
153
151
Make sure that you have defined a different `APACHE_VIRTUAL_HOST` value for each of your Apache containers.
154
152
155
-
## Install more PHP extensions
153
+
###Install more PHP extensions
156
154
157
155
Open the `Dockerfile` located in the `apache/volume` folder and [follow the official instructions](https://github.com/docker-library/docs/tree/master/php#how-to-install-more-php-extensions).
158
156
159
157
Once done, run `make kickoff` to rebuild your Apache container.
160
158
161
-
# Candies
159
+
##Candies
162
160
163
161
*[Install a Postfix container](docs/postfix.md)
164
162
*[Install Gulp](docs/gulp.md)
165
163
*[Install Mouf framework](docs/mouf_framework.md)
166
164
167
-
# FAQ / Known issues
165
+
##FAQ / Known issues
168
166
169
167
**Should I use this in production?**
170
168
@@ -182,6 +180,6 @@ Yep, this seems to be a current limitation of Docker on MacOS (see [#8076](https
182
180
183
181
Add the `xdebug.idekey` variable with your corresponding value in the `ext-xdebug.ini` file. You might also have to update the `xdebug.remote_host` variable's value with the IP address of your container (`docker inspect YOUR_APACHE_CONTAINER_NAME`).
0 commit comments