updated docs
This commit is contained in:
parent
6031f5f515
commit
1dd5c6f06d
23
README.md
23
README.md
@ -49,3 +49,26 @@ docker run -d -p 6080:80 libreschool-website
|
|||||||
With the above command, the website will be reachable via HTTP to port 6080.
|
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.
|
It's also possible do bind mount the container's `/logs` directory, to expose nginx logs.
|
||||||
|
|
||||||
|
## Using the container image
|
||||||
|
|
||||||
|
### Plain docker invocation
|
||||||
|
|
||||||
|
```sh
|
||||||
|
docker run -d -p 6080:80 git.libreschool.org/libreschool/libreschool.org:latest
|
||||||
|
```
|
||||||
|
|
||||||
|
### Via docker compose
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
version: "3.9"
|
||||||
|
services:
|
||||||
|
web:
|
||||||
|
image: git.libreschool.org/libreschool/libreschool.org:latest
|
||||||
|
restart: always
|
||||||
|
container_name: libreschool_website
|
||||||
|
volumes:
|
||||||
|
- ./logs:/logs
|
||||||
|
ports:
|
||||||
|
- 6080:80
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user