Based on https://github.com/netbox-community/netbox-docker/pull/291, secrets now take priority over environment variables.

Jonathan Chue 2020-12-30 23:16:38 -08:00
parent 6c5705bb56
commit 00d35d371c

@ -9,7 +9,7 @@ But if you rather continue to configure your application through environment var
Therefore we *strongly advise* to make use of the secrets mechanism provided by your container platform (i.e. [Docker Swarm secrets][swarm-secrets], [Kubernetes secrets][k8s-secrets], [OpenShift secrets][openshift-secrets]).
[The configuration file][docker-config] and [the entrypoint script][entrypoint] try to load the following secrets from the respective files.
If a secret is defined by an environment variable and in the respective file at the same time, then the value from the environment variable is used.
If a secret is defined by an environment variable and in the respective file at the same time, then the value from the secret is used.
* `SUPERUSER_PASSWORD`: `/run/secrets/superuser_password`
* `SUPERUSER_API_TOKEN`: `/run/secrets/superuser_api_token`