summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorlolcat <lolcat@no-reply@lolcat.ca>2024-01-09 08:25:44 -0600
committerlolcat <lolcat@no-reply@lolcat.ca>2024-01-09 08:25:44 -0600
commite9c6cce374af08f4f4dbcebcdce164eb97cb87ee (patch)
treed52ed146038202fc007cc09bc0cbc335d64c5d6e /README.md
parented5a992354fc07e8ca73ef4865f6664ff24d504c (diff)
parent3fad201c3bb36a3f3738e38df644e165a3ca1102 (diff)
Merge pull request 'docker load values from env' (#21) from feature/docker_env into master
Reviewed-on: https://git.lolcat.ca/lolcat/4get/pulls/21
Diffstat (limited to 'README.md')
-rw-r--r--README.md15
1 files changed, 12 insertions, 3 deletions
diff --git a/README.md b/README.md
index 7930cba..42c5d22 100644
--- a/README.md
+++ b/README.md
@@ -163,13 +163,21 @@ docker run -d -p 443:443 -e FOURGET_SERVER_NAME="4get.ca" -e FOURGET_SERVER_ADMI
replace enviroment variables FOURGET_SERVER_NAME and FOURGET_SERVER_ADMIN_EMAIL with relevant values
if the certificate files are not mounted to /etc/4get/certs the service listens to port 80
+
the certificate directory expects files named `cert.pem`, `chain.pem`, `privkey.pem`
+
## Install using Docker Compose
+
copy `docker-compose.yaml`
-create a directory with images named `banners` for example and mount to `/var/www/html/4get/banner`
-to serve custom banners
+to serve custom banners create a directory named `banners` for example with images and mount to `/var/www/html/4get/banner`
+
+to serve captcha images create a directory named `captchas` for example containing subfolders with images and mount to `/var/www/html/4get/data/captcha`
+
+any environment variables prefixed with `FOURGET_` will be added to the generated config
+the entrypoint will automatically set the `CAPTCHA_DATASET` value for you based on directory names and number of files in each
+
```
version: "3.7"
@@ -189,9 +197,10 @@ services:
volumes:
- /etc/letsencrypt/live/domain.tld:/etc/4get/certs
- ./banners:/var/www/html/4get/banner
+ - ./captchas:/var/www/html/4get/data/captcha
```
-Replace relevant values and start with `docker-compose up -d`
+Replace relevant values and start with `docker compose up -d`
## Install on Caddy