Skip to content

Env variables

Sebastian Frysztak edited this page Feb 18, 2023 · 3 revisions

Docker image supports the following env variables:

  • DB_USER - database username. defaults to postgres
  • DB_PASS - database password. required
  • DB_PASS_FILE - alternative for DB_PASS. accepts a file path, and uses file contents as DB password
  • DB_HOST - database hostname. required
  • DB_PORT - database port. defaults to 5432
  • DB_NAME - database name. defaults to postgres
  • COOKIE_SECRET - magic string used to sign cookies. required. must be at least 64 characters long. you can use openssl rand -base64 64 to generate it
  • COOKIE_SECRET_FILE - alternative for COOKIE_SECRET. same as DB_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 to false. 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)
Clone this wiki locally