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.
| prepare | Creates the `docker-compose.yml` and `docker-compose-nginx.yml` files using the variables's values specified in the `.env` file.|
68
+
| prepare | Creates the `docker-compose.yml` and `docker-compose-reverse-proxy.yml` files using the variables's values specified in the `.env` file. |
69
69
| build | Builds the Apache container. |
70
70
| down | Stops the Apache and MySQL containers, deletes their network and cleans the docker cache. |
71
71
| up | Ups the Apache and MySQL containers. |
72
-
|nginx-down | Stops the NGINX container and deletes its network.|
73
-
|nginx-up | Ups the NGINX container.|
74
-
| kickoff | Combo of down, prepare, build, nginx-up and up commands. |
72
+
|proxy-down | Stops the reverse proxy container and deletes its network. |
73
+
|proxy-up | Ups the reverse proxy container. |
74
+
| kickoff | Combo of down, prepare, build, proxy-up and up commands. |
75
75
| composer cmd=*yourcommand*| Allows you to run a composer command. Ex: `make composer cmd=install`, `make composer cmd=update`, ... |
76
76
| npm cmd=*yourcommand*| Allows you to run a npm command. Ex: `make npm cmd=install`, `make npm cmd="install --save-dev gulp"`, ... |
77
77
| export | This command will dump the database into two SQL files located at `mysql/dumps`. The files will be named as `yourdatabasename.sql` and `yourdatabasename.Y-m-d:H:M:S.sql`. |
78
78
| import | This command will drop the database, recreate it and then run the `yourdatabasename.sql` file. |
79
79
| shell | Connects through bash to the Apache container. |
80
-
| shell-nginx| Connects through bash to the NGINX container.|
80
+
| shell-proxy| Connects through bash to the reverse proxy container. |
81
81
| shell-mysql | Connects through bash to the MySQL container. |
82
82
| mysql-cli | Opens the MySQL cli. |
83
83
| tail | Displays the Docker's logs of the Apache container. |
84
-
| tail-nginx| Displays the Docker's logs of the NGINX container.|
84
+
| tail-proxy| Displays the Docker's logs of the reverse proxy container. |
85
85
| tail-mysql | Displays the Docker's logs of the MySQL container. |
86
86
87
87
## Dive in
@@ -92,12 +92,12 @@ There are three important files:
92
92
93
93
*`.env.template` which contains variables with default values.
94
94
*`docker-compose.yml.template` which contains the run configuration of the Apache and MySQL containers plus some of the variables defined in `.env.template`.
95
-
*`docker-compose-nginx.yml.template` which contains the run configuration of the NGINX container plus some of the variables defined in `.env.template`.
95
+
*`docker-compose-reverse-proxy.yml.template` which contains the run configuration of the reverse proxy container plus some of the variables defined in `.env.template`.
96
96
97
97
As these files are templates, they are not used directly. That's why you have to:
98
98
99
99
* run `cp .env.template .env` and update the variables' values in the `.env` file at your convenience.
100
-
* run `make kickoff` which runs `make prepare`: this command creates the `docker-compose.yml` and `docker-compose-nginx.yml` files using the variables' values defined in the `.env` file.
100
+
* run `make kickoff` which runs `make prepare`: this command creates the `docker-compose.yml` and `docker-compose-reverse-proxy.yml` files using the variables' values defined in the `.env` file.
101
101
102
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.
103
103
@@ -146,13 +146,13 @@ If you're using SSL Certificate Chains, we advise you to read the official NGINX
146
146
147
147
### Multiple environments/projects on the same host
148
148
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.
149
+
As you long as each `REVERSE_PROXY_NAME` and `REVERSE_PROXY_NETWORK` variables in your `.env` files have the same values, you are able to run as many environments/projects as you need.
150
150
151
151
Make sure that you have defined a different `APACHE_VIRTUAL_HOST` value for each of your Apache containers.
152
152
153
153
### Install more PHP extensions
154
154
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).
155
+
Open the `Dockerfile` located in the `apache` folder and [follow the official instructions](https://github.com/docker-library/docs/tree/master/php#how-to-install-more-php-extensions).
156
156
157
157
Once done, run `make kickoff` to rebuild your Apache container.
0 commit comments