Skip to content

Commit cc1521b

Browse files
committed
updated readme
1 parent 4572a91 commit cc1521b

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

README.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,34 @@
1+
<p align="center">
2+
<a href="http://docker.io">
3+
<img height="81" width="341" src="http://upload.wikimedia.org/wikipedia/commons/7/79/Docker_(container_engine)_logo.png">
4+
</a>
5+
</p>
6+
-----
17
# nginx-php56
2-
Docker - Nginx and PHP 5.6
8+
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

Comments
 (0)