Skip to content
This repository was archived by the owner on Mar 15, 2019. It is now read-only.

Commit 85603b2

Browse files
author
Julien Neuhart
committed
updating docs
1 parent 8d3364e commit 85603b2

File tree

3 files changed

+21
-14
lines changed

3 files changed

+21
-14
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ It will enable Xdebug on the Apache container. See also: [Use Xdebug with PhpSto
136136

137137
### SSL support
138138

139-
Open your `.env` file in your favorite editor, set the variable `NGINX_ENABLE_SSL=1` and run `make kickoff`.
139+
Open your `.env` file in your favorite editor, set the variable `REVERSE_PROXY_ENABLE_SSL=1` and run `make kickoff`.
140140

141-
It will enable SSL on the NGINX container. Make sure that you have defined the correct path to your certifications in `NGINX_CERTS_PATH`!
141+
It will enable SSL on the reverse proxy container. Make sure that you have defined the correct path to your certifications in `REVERSE_PROXY_CERTS_PATH`!
142142

143143
You will find more information on how to make SSL work here: https://github.com/jwilder/nginx-proxy#ssl-support
144144

@@ -178,7 +178,7 @@ Yep, this seems to be a current limitation of Docker on MacOS (see [#8076](https
178178

179179
**Xdebug is not working on MacOS**
180180

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`).
181+
Add the `xdebug.idekey` variable with your corresponding value in the `ext-xdebug.ini` file located in the `apache/conf.d` directory. 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`).
182182

183183
## Credits
184184

docs/gulp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
First, launch your environment with `make kickoff` and install gulp with `make npm cmd="install --save-dev gulp"`.
44

5-
Then, create a `_gulp` file in the bin folder with this content:
5+
Then, create a `_gulp` file in the `_bin` folder with this content:
66

77
```
88
#!/bin/bash
@@ -28,10 +28,10 @@ missing_arg()
2828
2929
gulp()
3030
{
31-
/bin/bash ${DIR}/_health_check --container_name ${APACHE_CONTAINER_NAME};
31+
/bin/bash ${DIR}/utils/_health_check --container_name ${APACHE_CONTAINER_NAME};
3232
3333
if [ $? -eq 1 ]; then
34-
/bin/bash ${DIR}/_whalesay --say "Apache container (${APACHE_CONTAINER_NAME}) is not running.";
34+
/bin/bash ${DIR}/misc/_whalesay --say "Apache container (${APACHE_CONTAINER_NAME}) is not running.";
3535
exit 1;
3636
fi;
3737

docs/postfix.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ By chance, there is a cool docker image which will help us with that: https://gi
77
First, update your `.env.template` file by adding:
88

99
```
10-
# postfix
10+
# [postfix]
1111
POSTFIX_SERVICE_NAME=postfix
1212
POSTFIX_CONTAINER_NAME=${PROJECT_NAME}_${POSTFIX_SERVICE_NAME}_${ENV}
1313
MAIL_DOMAIN=${APACHE_VIRTUAL_HOST}
@@ -31,15 +31,22 @@ ${POSTFIX_SERVICE_NAME}:
3131
- ${BASE_NETWORK}
3232
```
3333

34-
Add the following lines in the `prepare()` method of the `_prepare` script (in `bin` directory):
34+
Create a `_prepare_postfix` file in the `_bin/prepare` directory and add the following lines:
3535

3636
```
37-
# postfix
38-
sedi "s/\${POSTFIX_SERVICE_NAME}/${POSTFIX_SERVICE_NAME}/g" ${ROOT}/docker-compose.yml;
39-
sedi "s/\${POSTFIX_CONTAINER_NAME}/${POSTFIX_CONTAINER_NAME}/g" ${ROOT}/docker-compose.yml;
40-
sedi "s/\${MAIL_DOMAIN}/${MAIL_DOMAIN}/g" ${ROOT}/docker-compose.yml;
41-
sedi "s/\${NO_REPLY_EMAIL}/${NO_REPLY_EMAIL}/g" ${ROOT}/docker-compose.yml;
42-
sedi "s/\${SMTP_PASSWORD}/${SMTP_PASSWORD}/g" ${ROOT}/docker-compose.yml;
37+
#!/bin/bash
38+
39+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )";
40+
ROOT=${DIR}/../..;
41+
42+
# environment variables
43+
source ${ROOT}/.env;
44+
45+
/bin/bash ${ROOT}/_bin/utils/_sedi "s/\${POSTFIX_SERVICE_NAME}/${POSTFIX_SERVICE_NAME}/g" ${ROOT}/docker-compose.yml;
46+
/bin/bash ${ROOT}/_bin/utils/_sedi "s/\${POSTFIX_CONTAINER_NAME}/${POSTFIX_CONTAINER_NAME}/g" ${ROOT}/docker-compose.yml;
47+
/bin/bash ${ROOT}/_bin/utils/_sedi "s/\${MAIL_DOMAIN}/${MAIL_DOMAIN}/g" ${ROOT}/docker-compose.yml;
48+
/bin/bash ${ROOT}/_bin/utils/_sedi "s/\${NO_REPLY_EMAIL}/${NO_REPLY_EMAIL}/g" ${ROOT}/docker-compose.yml;
49+
/bin/bash ${ROOT}/_bin/utils/_sedi "s/\${SMTP_PASSWORD}/${SMTP_PASSWORD}/g" ${ROOT}/docker-compose.yml;
4350
```
4451

4552
Last but not least, run `cp .env.template .env` and `make kickoff`! You have now at your disposal a nice Postfix container :smiley:

0 commit comments

Comments
 (0)