-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5505e7a
commit ed2a5a6
Showing
1 changed file
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,39 @@ | ||
# docker-php5-fpm-redis | ||
# docker php5 fpm redis | ||
|
||
This container can be found pre-built on docker hub as freshsauce/php5-fpm-redis | ||
https://registry.hub.docker.com/u/freshsauce/php5-fpm-redis/ | ||
|
||
It's designed to run php-fpm for a nginx container based on image freshsauce/nginx | ||
|
||
- Based on official php5.6 fpm build | ||
- exposes port 9000 | ||
- volume /var/www web root is /var/www/html | ||
- installs pear | ||
- installs PHP with | ||
- gd | ||
- mbstring | ||
- iconv | ||
- mcrypt | ||
- pdo | ||
- pdo_mysql | ||
- mysql | ||
- redis client via pecl | ||
- expects a php-fpm instance to be running before it's started with an alais of php on port 9000 | ||
- sets the default timezone to Europe/London via build/php.ini which is added to the container | ||
|
||
## Pull or build | ||
|
||
docker pull freshsauce/php5-fpm-redis | ||
|
||
Or build under your own username on docker | ||
|
||
docker build -t username/php5-fpm . | ||
|
||
## Run up with | ||
|
||
docker run --name php -v /host/web/html:/var/www/html \ | ||
--link redis:redis --link mysql:db -d username/php5-fpm-redis | ||
|
||
- links to a mysql constainer aliased as db | ||
- links to a redis constainer aliased as redis | ||
- mounts host directory /host/web/html as /var/www/html in the container |