mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-26 05:27:31 +02:00
add nginx
This commit is contained in:
parent
e15a9a68d5
commit
a5fd9fefcd
14
nginx/Dockerfile
Normal file
14
nginx/Dockerfile
Normal 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
19
nginx/README.md
Normal 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
8
nginx/docker-compose.yml
Normal 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
|
Loading…
x
Reference in New Issue
Block a user