Public | Automated Build

Last pushed: a year ago
Short Description
Development nginx image for Docker.
Full Description

Nginx - Development Image

Don't use this for production!

This is a development docker image for Nginx. Used for my
local development environment.

docker build -t v0/nginx github.com/vnought/docker-nginx-dev

Virtual hosts are expected to be mounted when run, e.g.

docker run -d -v ./src:/usr/share/nginx -v ./src/config/vhost.conf:/etc/nginx/conf.d/vhost.conf v0/nginx

And app runtimes should be in linked containers (See
docker-phpfpm-dev)

Example docker-compose.yml

web:
  image: v0/nginx
  ports:
    - "8080:80"
  volumes:
    - ./config/nginx.conf:/etc/nginx/conf.d/vhost.conf
    - .:/usr/share/nginx
  links:
    - php

php:
  image: v0/php-fpm
  volumes:
    - .:/usr/share/nginx
Docker Pull Command
Owner
vnought
Source Repository

Comments (0)