From 1dd5c6f06da78d3e262d6378cd32f5dcfc0c61e3 Mon Sep 17 00:00:00 2001 From: Paolo Asperti Date: Sat, 2 Dec 2023 22:57:35 +0100 Subject: [PATCH] updated docs --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index 9f5b421..c53d5d8 100644 --- a/README.md +++ b/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. 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 +```