Compare commits

..

2 Commits

4 changed files with 38 additions and 0 deletions

2
Dockerfile 100644
View File

@ -0,0 +1,2 @@
FROM nginx:latest
COPY ./index.html /usr/share/nginx/html/index.html

View File

@ -0,0 +1,14 @@
# README
This is a practise repo for learning how to run nginx docker for serving:
* static content
* reverse proxy of other services
How to run nginx docker container:
```
docker-compose build
docker-compose up
```
* As we use docker-compose.yaml, it's easy to build image and spawn up container in this way

View File

@ -0,0 +1,9 @@
services:
web:
container_name: web
hostname: web
build:
context: ./
dockerfile: Dockerfile
ports:
- 8085:80

13
index.html 100644
View File

@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Docker Nginx</title>
</head>
<body>
<h2>Hello from Nginx container, Again</h2>
</body>
</html>