Public | Automated Build

Last pushed: 9 months ago
Short Description
nginx image based on alpine
Full Description

About this Repo


This repository contains Dockerfile of Nginx for Docker's automated build.

Base Docker Image

Installation

  1. Install Docker.

  2. Download automated build from public Docker Hub Registry: docker pull renothing/nginx:tag

    (alternatively, you can build an image from Dockerfile: docker build -t="nginx:tag" github.com/renothing/docker-nginx.git)

  3. default environments supported,you can change them before building.
    the nginx start with port 80

     TIMEZONE=Asia/Shanghai
    

    Supported tags and respective

  • latest,1.10.1

Usage

docker run -dit --name nginx -v yourapppath:/var/www renothing/nginx:tag
#link with backend server
docker run -dit --name nginx -v yourapppath:/var/www --link yourbackendserver:backend renothing/nginx:tag
#attach your own conf
docker run -dit --name nginx -v yourconfpath:/etc/nginx -v yourapppath:/var/www --link yourbackendserver:backend renothing/nginx:tag
#check logs
docker logs nginx
Docker Pull Command
Owner
renothing
Source Repository

Comments (0)