From 45e5f78f53bfb232d77dc6328ec8ae224802f6e0 Mon Sep 17 00:00:00 2001 From: Leonard Jonathan Oh Date: Wed, 29 Nov 2023 03:19:17 +0000 Subject: [PATCH] Docs (docker): Add comma-delimited examples for env vars which expect array value --- docker-compose.yml | 2 ++ docs/full-bf2-stack-example/docker-compose.yml | 2 ++ docs/upgrading-docker-images-to-3.3.md | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index ab14303..49e1b66 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -102,6 +102,8 @@ services: - DB_NAME=bf2stats - DB_USER=root - DB_PASS=ascent + - ADMIN_HOSTS=127.0.0.1,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 # Limit admins to private IPs + - DEBUG_LVL=4 volumes: - ./src/ASP:/src/ASP - backups-volume:/src/ASP/system/backups # This volume is effectively unused since ASP doesn't allow DB backups for a remote DB, but mount it anyway to avoid errors. diff --git a/docs/full-bf2-stack-example/docker-compose.yml b/docs/full-bf2-stack-example/docker-compose.yml index 68c15c3..daaee5a 100644 --- a/docs/full-bf2-stack-example/docker-compose.yml +++ b/docs/full-bf2-stack-example/docker-compose.yml @@ -150,6 +150,8 @@ services: - DB_NAME=bf2stats - DB_USER=root - DB_PASS=ascent + - ADMIN_HOSTS=127.0.0.1,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 # Limit admins to private IPs + - DEBUG_LVL=4 # ports: # - 8081:80 volumes: diff --git a/docs/upgrading-docker-images-to-3.3.md b/docs/upgrading-docker-images-to-3.3.md index 7b40ce5..ac59af8 100644 --- a/docs/upgrading-docker-images-to-3.3.md +++ b/docs/upgrading-docker-images-to-3.3.md @@ -54,12 +54,14 @@ To this: asp: image: startersclan/bf2stats:3.3.0 environment: - # See ./src/ASP/system/config/config.php for all supported env vars + # See ./src/ASP/system/config/config.php for all supported env vars. Use comma-delimited value for array - DB_HOST=db - DB_PORT=3306 - DB_NAME=bf2stats - DB_USER=root - DB_PASS=ascent + - ADMIN_HOSTS=127.0.0.1,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 # Limit admins to private IPs + - DEBUG_LVL=4 volumes: - backups-volume:/src/ASP/system/backups # This volume is effectively unused since ASP doesn't allow DB backups for a remote DB, but mount it anyway to avoid errors. - cache-volume:/src/ASP/system/cache