Skip to content

Commit

Permalink
Merge pull request #75 from leojonathanoh/docs/docker-add-comma-delim…
Browse files Browse the repository at this point in the history
…ited-examples-for-env-vars-which-expect-array-value

Docs (docker): Add comma-delimited examples for env vars which expect array value
  • Loading branch information
leojonathanoh committed Nov 29, 2023
2 parents 312fc9d + 45e5f78 commit 98063b6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions docs/full-bf2-stack-example/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion docs/upgrading-docker-images-to-3.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98063b6

Please sign in to comment.