diff --git a/nginx/Dockerfile b/nginx/Dockerfile new file mode 100644 index 0000000..5606658 --- /dev/null +++ b/nginx/Dockerfile @@ -0,0 +1,14 @@ +# +# Dockerfile for nginx +# + +FROM alpine +MAINTAINER kev + +RUN apk add -U nginx \ + && rm -rf /var/cache/apk/* + +VOLUME /usr/share/nginx/html +EXPOSE 80 + +CMD ["nginx", "-g", "daemon off;"] diff --git a/nginx/README.md b/nginx/README.md new file mode 100644 index 0000000..ef7638d --- /dev/null +++ b/nginx/README.md @@ -0,0 +1,19 @@ +nginx +===== + +`Nginx` is an open source reverse proxy server for HTTP, HTTPS, SMTP, POP3, and +IMAP protocols, as well as a load balancer, HTTP cache, and a web server +(origin server). + +## docker-compose.yml + +``` +nginx: + image: vimagick/nginx + ports: + - "80:80" + volumes: + - nginx/nginx.conf:/etc/nginx/nginx.conf + - html:/usr/share/nginx/html + restart: always +``` diff --git a/nginx/docker-compose.yml b/nginx/docker-compose.yml new file mode 100644 index 0000000..4517ff5 --- /dev/null +++ b/nginx/docker-compose.yml @@ -0,0 +1,8 @@ +nginx: + image: vimagick/nginx + ports: + - "80:80" + volumes: + - nginx/nginx.conf:/etc/nginx/nginx.conf + - html:/usr/share/nginx/html + restart: always