Sign inSign up

renothing/nginx

By renothing

•Updated 2 months ago

nginx image based on alpine

Image
0

2.7K

renothing/nginx repository overview

⁠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

Tag summary

Content type

Image

Digest

sha256:26997c5b2…

Size

13.3 MB

Last updated

2 months ago

docker pull renothing/nginx