Compare commits
2 Commits
0bc19e6808
...
81bbac260c
Author | SHA1 | Date | |
---|---|---|---|
81bbac260c | |||
29b82981bd |
12
README.md
12
README.md
@ -1,14 +1,6 @@
|
|||||||
# README
|
# README
|
||||||
|
|
||||||
This is a practise repo for learning how to run nginx docker for serving:
|
This is a practise repo for learning how to run nginx docker for serving:
|
||||||
* static content
|
* static content from different directories
|
||||||
* reverse proxy of other services
|
* reverse proxy of other services
|
||||||
|
* etc
|
||||||
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
|
|
12
eg1/README.md
Normal file
12
eg1/README.md
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# README
|
||||||
|
|
||||||
|
In this example 1, we implemented a nginx container, which has index.html changed to our own customized index
|
||||||
|
|
||||||
|
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
|
Loading…
x
Reference in New Issue
Block a user