1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-26 05:27:31 +02:00

add nginx

This commit is contained in:
kev 2015-07-01 19:57:52 +08:00
parent e15a9a68d5
commit a5fd9fefcd
3 changed files with 41 additions and 0 deletions

14
nginx/Dockerfile Normal file
View File

@ -0,0 +1,14 @@
#
# Dockerfile for nginx
#
FROM alpine
MAINTAINER kev <noreply@datageek.info>
RUN apk add -U nginx \
&& rm -rf /var/cache/apk/*
VOLUME /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

19
nginx/README.md Normal file
View File

@ -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
```

8
nginx/docker-compose.yml Normal file
View File

@ -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