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 2 months 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 (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-01T16:32:14.000Z (over 10 years ago)
- Last Synced: 2025-02-16T22:28:03.612Z (5 months ago)
- Size: 125 KB
- Stars: 0
- Watchers: 3
- 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