Sign inSign up

wolnosciowiec/docker-php-fpm

By wolnosciowiec

‱Updated over 8 years ago

PHP-FPM container used at Wolnosciowiec

Image
0

2.4K

wolnosciowiec/docker-php-fpm repository overview

⁠Alpine based PHP 7.2 container with PHP-FPM

ImageLayers Layers ImageLayers Size Docker Build Status Docker Pulls

Includes:

  • redis extension
  • igbinary enabled by default
  • PHP hardened defaults
  • user called "production" with 1000:1000 uid and gid
  • multiple apps stored at /www/{{ app_name }}
  • Makefile support, by default executes make deploy at every application
  • composer support, if makefile is not present then a composer install --dev is performed
  • Support for Wolnoƛciowiec Notification Client, only add your configuration at /www/.notificationrc
  • rsyslogd
  • crond
  • APCu
  • composer
⁠Setting up
  1. Add your applications to the container using a Dockerfile or mount as a volume to /www/{{ app_name }}.
  2. Take a look at php.ini, change the session storage cache if you do not like Redis on tcp://cache_server:6379
  3. If you want to use Wolnosciowiec Notification Client then put your configuration at /www/.notificationrc
  4. After running containers you have to run provision manually via docker exec -it {{ container_id }} /provision-on-deployment.sh
  5. Add your crontab tasks to /etc/crontabs/production so it will be executed as production user
  6. Connect nginx or Apache 2 or lighttpd or other webserver to the FPM on 9000 port exposed by the container

Tag summary

Content type

Image

Digest

Size

83.4 MB

Last updated

over 8 years ago

docker pull wolnosciowiec/docker-php-fpm