Skip to content

DockerDemos/appstack-phpfpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

appstack-phpfpm

v3.0 - 20160908

Docker images for running a PHP-FPM container; for use with other AppStack images

##Running##

The container is designed to be run with the appstack-apache and appstack-data containers.

First run the data container, and map a directories on your host to /conf and /var/www/html:

sudo docker run -d --name data -v /srv/conf:/conf -v /srv/html:/var/www/html data

Place your SSL certificate and Key into /srv/conf. (Non-SSL support will be added in a future update.)

Run the php-fpm container:

sudo docker run --name fpm --volumes-from data -d php-fpm

Run the Apache container, with volumes from the data container, ports 80 and 443 exposed to your host, and linked to the php-fpm container.

sudo docker run -p 80:80 -p 443:443 --name web --link fpm:fpm --volumes-from data -d apache

Finally, place whatever content you want served into /srv/html, and you're done.

Changelog

20160908 - v3.0

  1. Moved epel and ius repo config out of Dockerfile into their own file
  2. Renamed ssmtp config script and phpfpm init script
  3. Placed phpfpm init script in directory structure that would work with runit init system if installed in a base image
  4. Re-wrote ssmtp and phpfpm scripts for readability

20160330 - v2.0

  1. Changed conf to run as user Apache and group Apache to work with Apache container
  2. Added access log creation

##Issues##

Tracked on Github: https://github.com/DockerDemos/appstack-phpfpm/issues

##Copyright Information##

Copyright (C) 2014-2015 Chris Collins

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

Docker image with PHP-FPM; for use with other AppStack images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages