From 3c1bd2f9afa4a2dd7e0ca5226ee58e68c0407e8c Mon Sep 17 00:00:00 2001 From: Josh Thorpe <33478918+ThorpeJosh@users.noreply.github.com> Date: Tue, 9 Jan 2024 21:29:27 +0800 Subject: [PATCH] docs: docker secrets --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 01ffea6..27949b1 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,17 @@ When contributing please ensure to log a pull request on the `unstable` branch Check out our dockerhub to run Jellystat: https://hub.docker.com/r/cyfershepard/jellystat +### Environment variables from files (Docker secrets) +You can set any environment variable from a file by using the prefix `FILE__` + +As an example: +```yaml + jellystat: + environment: + FILE__MYVAR: /run/secrets/MYSECRETFILE +``` +Will set the environment variable `MYVAR` based on the contents of the `/run/secrets/MYSECRETFILE` file. see [docker secrets](https://docs.docker.com/compose/use-secrets/) for more info. + ## Screenshots