Sign inSign up

braydeejohnson/nginx-phpfpm

By braydeejohnson

•Updated over 9 years ago

Nginx container to be used in conjunction with a phpfpm container.

Image
0

1.7K

braydeejohnson/nginx-phpfpm repository overview

⁠docker-nginx-phpfpm

Nginx container to be used in conjunction with a php-fpm container⁠. This container is intended to wrap around a single Laravel based site.

The source for the containers can be found on Github⁠ The container builds can be found on Docker Hub⁠

Currently the latest tag is sufficient and works with multiple versions of PHP and PHP-FPM.

⁠Example docker-compose.yml
version: '2'
services:
  nginx:
    image: braydeejohnson/nginx-phpfpm
    links:
      - fpm
    volumes_from:
      - data
  fpm:
    image: braydeejohnson/phpfpm
    volumes_from:
      - data
  data:
    image: braydeejohnson/data
    volumes:
      - ./:/data/www

In order for nginx to properly serve to phpfpm you must name the service fpm, regardless of php-fpm version.

Feel free to submit a Pull Request or Issue at my Github⁠ if you would like to have this supported beyond its current capabilities.

Tag summary

Content type

Image

Digest

Size

78.9 MB

Last updated

over 9 years ago

docker pull braydeejohnson/nginx-phpfpm