Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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