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
Copy file name to clipboardExpand all lines: README.md
+27-2Lines changed: 27 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
</a>
5
5
</p>
6
6
-----
7
-
# nginx-php56
7
+
# nginx-php56[](https://imagelayers.io/?images=mstrazds/nginx-php56:latest'Get your own badge on imagelayers.io')
8
8
A Nginx + PHP 5.6 (FPM) base container. Builds upon on the excellent [phusion/baseimage-docker](https://github.com/phusion/baseimage-docker) container. You can find the docker automated build [here](https://registry.hub.docker.com/u/mstrazds/nginx-php56/).
9
9
10
10
### Services
@@ -26,7 +26,32 @@ The following folder is specified as the default root web folder:
26
26
27
27
``/var/www/public``
28
28
29
-
Note that the ``/var/www/public`` is the root folder for serving PHP files for your web server.
29
+
Note that the ``/var/www/public`` is the root folder for serving PHP files for your web server. The following ports are exposed:
30
+
31
+
* 80 (HTTP)
32
+
* 443 (HTTPS/SSL)
33
+
34
+
### SSL Self Signed Certificate
35
+
The image generates a self-signed certificate for each container within the folder:
36
+
37
+
``/etc/nginx/certs.d/``
38
+
39
+
During build the ``build/default`` file is used to copy and configure nginx default settings. This includes a cipher suite for legacy browser (IE8+) support. See: [https://cipherli.st/](https://cipherli.st/)
40
+
41
+
### Node + NVM
42
+
The image contains installation and configuration of node ``0.10.37`` by default using NVM [(Node Version Manager)](https://github.com/creationix/nvm). This can be changed by running: ``nvm install $NODE_VERSION`` and using the new node version by running the following command: ``nvm use $NODE_VERSION``
43
+
44
+
### New Relic APM
45
+
Installs New Relic APM daemon on [container startup](https://github.com/phusion/baseimage-docker#running_startup_scripts) to monitor the php application within the image. See [this tutorial](http://code.tutsplus.com/tutorials/how-to-monitor-docker-based-applications-using-new-relic--cms-24891) for more information.
46
+
47
+
The following environment variables are required in order to complete the New Relic configuration:
48
+
49
+
*``NR_INSTALL_KEY`` 134adf09dsfblahsomething
50
+
*``NR_APP_NAME`` "Docker PHP App Name"
51
+
52
+
If the ``NR_INSTALL_KEY`` New Relic will not be setup. By default this will prevent monitoring as the key is invalid until entered on startup. Eg:
0 commit comments