forked from LibreSchool/libreschool.org
docker basic instructions
This commit is contained in:
parent
042c206885
commit
48dc9053f6
18
README.md
18
README.md
@ -31,3 +31,21 @@ hugo
|
|||||||
```
|
```
|
||||||
|
|
||||||
The complete website will be placed in the `public` directory.
|
The complete website will be placed in the `public` directory.
|
||||||
|
|
||||||
|
## Building the container image
|
||||||
|
|
||||||
|
This website can be used as a container image; to do so in docker:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
docker build -t libreschool-website .
|
||||||
|
```
|
||||||
|
|
||||||
|
Then you can run the image:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
docker run -d -p 6080:80 libreschool-website
|
||||||
|
```
|
||||||
|
|
||||||
|
With the above command, the website will be reachable via HTTP to port 6080.
|
||||||
|
|
||||||
|
It's also possible do bind mount the container's `/logs` directory, to expose nginx logs.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user