-
Notifications
You must be signed in to change notification settings - Fork 5
Env variables
Sebastian Frysztak edited this page Feb 18, 2023
·
3 revisions
Docker image supports the following env variables:
-
DB_USER
- database username. defaults topostgres
-
DB_PASS
- database password. required -
DB_PASS_FILE
- alternative forDB_PASS
. accepts a file path, and uses file contents as DB password -
DB_HOST
- database hostname. required -
DB_PORT
- database port. defaults to5432
-
DB_NAME
- database name. defaults topostgres
-
COOKIE_SECRET
- magic string used to sign cookies. required. must be at least 64 characters long. you can useopenssl rand -base64 64
to generate it -
COOKIE_SECRET_FILE
- alternative forCOOKIE_SECRET
. same asDB_PASS
/DB_PASS_FILE
pair -
APP_URL
- public URL of deployed application (e.g.https://news.example.com
). required -
DISABLE_SECURE_COOKIE
- makes auth cookie non-Secure
. defaults tofalse
. this variable is generally not recommended to be used, but can be useful when your self-hosted infrastructure doesn't have HTTPS yet (see issue #94)