Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noteed/docker-nginx
Nginx as a Docker image
https://github.com/noteed/docker-nginx
Last synced: about 2 months ago
JSON representation
Nginx as a Docker image
- Host: GitHub
- URL: https://github.com/noteed/docker-nginx
- Owner: noteed
- Created: 2013-09-19T19:09:28.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-05-01T09:35:45.000Z (over 10 years ago)
- Last Synced: 2023-04-13T10:31:54.348Z (over 1 year ago)
- Language: Shell
- Size: 117 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nginx as a Docker image
This is a very simple Docker image with Nginx. It can be used to serve the
current directory, tuning the behavior with Nginx configuration files.## Running it
Assuming the image has been built as `noteed/nginx`, running is
straightforward:> docker run -p 80:80 noteed/nginx
The interesting part is to feed the Docker container, and thus Nginx, with your
configuration, and possibly a root directory from which Nginx will serve some
static content:> docker run -p 80:80 \
-v `pwd`/www:/usr/share/nginx/www \
-v `pwd`/sites-enabled:/etc/nginx/sites-enabled \
noteed/nginxWhile the Docker container is running, the Nginx access logs are displayed.