This repository contains Dockerfile of Nginx for Docker's automated build.
Install Docker.
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)
default environments supported,you can change them before building.
the nginx start with port 80
TIMEZONE=Asia/Shanghai
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
Content type
Image
Digest
sha256:26997c5b2…
Size
13.3 MB
Last updated
2 months ago
docker pull renothing/nginx