summaryrefslogtreecommitdiff
path: root/docs/docker.md
diff options
context:
space:
mode:
authorthrowaway <developerthrowaway@protonmail.com>2024-04-19 13:47:02 -0700
committerthrowaway <developerthrowaway@protonmail.com>2024-04-19 13:47:20 -0700
commite31b9494af16bf833d14b6256ca055fa94b6f77b (patch)
treeb970a16d73e4a0f90a0e30228270c9d798fe79fd /docs/docker.md
parent4afec792c4e7b4f9596443d83f7d43c86ceeb20d (diff)
pass array as comma separated env
Diffstat (limited to 'docs/docker.md')
-rw-r--r--docs/docker.md15
1 files changed, 10 insertions, 5 deletions
diff --git a/docs/docker.md b/docs/docker.md
index 2507bcf..e56b5ca 100644
--- a/docs/docker.md
+++ b/docs/docker.md
@@ -2,12 +2,17 @@
When using docker container any environment variables prefixed with `FOURGET_` will be added to the generated config located at `/var/www/html/4get/data/config.php`
+When lists of data is expected in [data/config.php](../data/config.php), such as `INSTANCES`, you can pass in a comma separated string via environment variable.
+
+Example:
+`FOURGET_INSTANCES="https://4get.ca,https://domain.tld"`
+
#### Special environment variables
| Name | value | Example |
| - | - | - |
| FOURGET_PROTO | "http" or "https" | "https" |
-| FOURGET_INSTANCES | comma separated string of urls | "https://4get.ca,https://domain.tld" |
+
#### Important directories
@@ -65,7 +70,7 @@ version: "3.7"
services:
fourget:
image: luuul/4get:latest
- restart: always
+ restart: unless-stopped
environment:
- FOURGET_VERSION=6
- FOURGET_PROTO=http
@@ -84,7 +89,7 @@ version: "3.7"
services:
fourget:
image: luuul/4get:latest
- restart: always
+ restart: unless-stopped
environment:
- FOURGET_VERSION=6
- FOURGET_PROTO=https
@@ -110,7 +115,7 @@ version: "3.7"
services:
fourget:
image: luuul/4get:latest
- restart: always
+ restart: unless-stopped
environment:
- FOURGET_VERSION=6
- FOURGET_PROTO=http
@@ -133,7 +138,7 @@ version: "3.7"
services:
fourget:
image: luuul/4get:latest
- restart: always
+ restart: unless-stopped
environment:
- FOURGET_VERSION=6
- FOURGET_PROTO=http