Skip to main content

Environment variables

Homarr offers a Docker Container, which can be run on any compatible system, such as Unraid, Kubernetes and many more systems! Our Docker container is based on the 22.12.0-alpine image and serves per standard on the port 7575.


Homarr offers a few environment variables, which can be used to configure the container.

Authentication​

See Single Sign-On for more informations.

Docker​

Environment VariableDescriptionPossible valuesDefault
DOCKER_HOSTNAMESComma seperated list of hostnames to connect toFor example localhost,docker.example.com-
DOCKER_PORTSComma seperated list of ports to connect toFor example 2375,2376-

Database​

Environment VariableDescriptionPossible valuesDefault
DB_DRIVERDatabase driver to use. Currently better-sqlite3 is used for sqlite and mysql2 for mysqlbetter-sqlite3 / mysql2better-sqlite3
DB_DIALECTDatabase dialect to use.sqlite / mysqlsqlite
DB_URLDatabase URL to connect to.Any valid database URL/appdata/db/db.sqlite
DB_HOSTDatabase host to connect to.Any valid database host-
DB_PORTDatabase port to connect to.Any valid database port-
DB_NAMEDatabase name to connect to.Any valid database name-
DB_USERDatabase user to connect with.Any valid database user-
DB_PASSWORDDatabase password to connect with.Any valid database password-

You can either use the url or host, port, name and credentials combined. The URL will be prioritized over the other values.

Advanced deployments​

warning

The advanced deployments environment variables should only be used if you know what you are doing.

Environment VariableDescription
DB_MIGRATIONS_DISABLEDDisable db migrations. For example for helm charts