Public Repository

Last pushed: 7 months ago
Short Description
Crowdfunder nginx with php via php-fpm (see other container)
Full Description

docker nginx container

This container can be found pre-built on docker hub as freshsauce/cf-nginx
https://registry.hub.docker.com/u/freshsauce/cf-nginx/

It's designed to run nginx with php running in another container as php:9000
such as a container built using image freshsauce/cf-php5-fpm-redis

  • Based on official nginx
  • exposes port 80 and 443 (ssl)
  • volume /var/www web root is one of
    • /var/www/vhosts/site/public_html (domain cf.dev)
    • /var/www/vhosts/api/public_html (domain api.cf.dev)
    • /var/www/vhosts/payments/public_html (domain payment.cf.dev)
  • expects a php-fpm instance to be running before it's started with an alais of php on port 9000
  • sets the default host conf to build/default.conf which is added to the container

Pull or build

docker pull freshsauce/cf-nginx

Or build under your own username on docker

docker build -t username/cf-nginx .

Run up with

docker run --name web -v /host/web/html:/var/www/vhosts/site/public_html \
  --link php:php -p 80:80 -p 443:443 -d freshsauce/cf-nginx
  • links port 80 to local host
  • mounts host directory /host/web/html as /var/www/vhosts/site/public_html in the container
  • links a php-fpm container listening on port 9000 into the nginx container as host named php
Docker Pull Command
Owner
freshsauce

Comments (0)