Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hachreak/docker-nginx-demo
Docker Demo with nginx server preconfigured to load your pages.
https://github.com/hachreak/docker-nginx-demo
Last synced: about 7 hours ago
JSON representation
Docker Demo with nginx server preconfigured to load your pages.
- Host: GitHub
- URL: https://github.com/hachreak/docker-nginx-demo
- Owner: hachreak
- License: gpl-2.0
- Created: 2015-02-01T14:55:25.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-01T16:32:14.000Z (almost 10 years ago)
- Last Synced: 2023-03-11T12:47:51.114Z (over 1 year ago)
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Description
===========Docker Demo with nginx server pre-configured to load your pages.
Install a new debian container with installed nginx.
Nginx load the files of the website directly from `site` directory.
How To
------First, build the image and then run the nginx server inside a docker container.
```bash
cd docker-nginx-demo
docker build -t nginx-example .
docker run -p 8081:80 -v=`pwd`/site:/var/www:rw -d nginx-example
```Now, you can open your browser: `http://0.0.0.0:8081/` and see `Hello Worlds` message.
If you see the message, the demo worked well! :D