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
A Nginx + PHP 5.6 (FPM) Base container. This container is based on the excellent [phusion/baseimage-docker](https://github.com/phusion/baseimage-docker) base container.
9
+
10
+
### Services
11
+
All services are defined and managed using the phusion/baseimage methodology. Logs are output using syslog and can be accessed using ``docker logs {container}``.
12
+
13
+
* Nginx
14
+
* PHP-FPM (5.6)
15
+
16
+
### Default Settings
17
+
The container sets up a www root folder in the following location:
18
+
19
+
``/var/www/public``
20
+
21
+
As a final task a demo index.php is copied to this location.
22
+
23
+
### Volumes
24
+
The following folder is specified as a volume:
25
+
26
+
``/var/www/``
27
+
28
+
Note that the ``/var/www/public`` is actually the root folder for serving PHP files for your web server. Having a layer back for the volume allows a bit more control over what files are visible.
29
+
30
+
### Build Folder (within repo)
31
+
The build folder contains the nginx config files as well as php-fpm settings and a setup.sh file that offloads tasks from the Dockerfile.
32
+
33
+
### Notes
34
+
Remember that PHP-FPM doesn not respect environment variables passed in the traditional manner. You will need to explicitly state what your variables are within the ``/etc/php5/fpm/pool.d/www.conf`` file.
0 commit comments