Homarr is a self-hosted dashboard: one page in your browser with a tile for each app on your server, and widgets that show live data from them, such as Pi-hole's blocked queries or the memory each Docker container uses. You build the board with the mouse, so there is no configuration file to write.
We installed Homarr 2.15.0 with Docker Compose on 2 and 3 December 2026, on an Ubuntu 26.04.1 server with Docker 29.10.1 that also ran Pi-hole and Uptime Kuma. We went through the first-start setup, connected Pi-hole, added Docker stats, backed it up two ways, broke it on purpose by removing the encryption key, and ran Homepage next to it to compare. Every screenshot below comes from that test.
Quick answer: install Homarr with Docker Compose
In plain words: Homarr is the home screen of your server, like the one on a phone. Instead of remembering an address and a port for each app, you open one page and click its tile. Widgets on the same page show what the apps are doing, and with Docker access, which containers run and how much memory they use.
- Install Docker Engine and the Docker Compose plugin.
- Make a folder, save the docker-compose.yml file below in it, and create the encryption key with
echo "SECRET_ENCRYPTION_KEY=$(openssl rand -hex 32)" > .env. - Run
docker compose up -din that folder. - Open http://your-server-ip:7575, click Get started and create the administrator account. There is no default login.
- Follow the six setup steps, then add apps and widgets in edit mode.
- Back up the appdata folder and the .env file together: one without the other is not enough.
Each step has a full, tested section below. The result in our lab:

What you need
- A Linux server or home server with Docker. We used Ubuntu 26.04.1 LTS, Docker 29.10.1 and Docker Compose v5.8.1.
- About 1 GB of disk for the image (931 MB in our test) and 400 MB of free memory: Homarr used between 269 and 354 MB during our test.
- Port 7575 free on the server.
- The apps you want on the board. Ours were Pi-hole 2026.11.0 (web interface on port 8080) and Uptime Kuma 2 (port 3001), in Docker on the same server.
Step 1: Install Docker and Docker Compose
Homarr's documentation calls Docker Compose the recommended installation method. Install Docker Engine and the Compose plugin from Docker's own repository (our guide Install Docker Compose on Ubuntu shows each command), then check both versions:
docker --version
docker compose version
Step 2: Create the docker-compose.yml file
Make a folder for Homarr (we used ~/homarr) and save this file in it as docker-compose.yml:
services:
homarr:
container_name: homarr
image: ghcr.io/homarr-labs/homarr:v2
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock # optional: Docker integration
- ./homarr/appdata:/appdata
environment:
- SECRET_ENCRYPTION_KEY=${SECRET_ENCRYPTION_KEY}
ports:
- '7575:7575'
What each part does:
- image: the official image. The documentation's example uses
:latest, but it also warns that this tag can move to a new major version.:v2follows the stable v2 releases only, so an update never jumps to v3 by surprise. - /var/run/docker.sock: optional. It lets Homarr find your containers and show their state, memory and start and stop buttons. It also gives Homarr full control of Docker: read the section on the Docker socket below before you keep it.
- ./homarr/appdata: the database and the settings. Without this volume, everything you build is lost when the container is recreated.
- SECRET_ENCRYPTION_KEY: the key Homarr uses to encrypt the passwords and API keys of your integrations. Compose reads its value from the .env file of Step 3.
- ports: the web interface on 7575.
Step 3: Generate the encryption key
In the same folder, create a random key in a file named .env, make it readable by your user only, and check it:
echo "SECRET_ENCRYPTION_KEY=$(openssl rand -hex 32)" > .env
chmod 600 .env
ls -l .env
openssl rand -hex 32 prints 32 random bytes as 64 hexadecimal characters, the format Homarr asks for (the documentation suggests the same command). Docker Compose reads the .env file of the folder by itself and puts the value in place of ${SECRET_ENCRYPTION_KEY}, so the key never appears in docker-compose.yml. The file is 87 bytes: the variable name, the 64 characters and the end of the line.
Keep a copy of this file with your backups. The documentation says to keep the same key for the life of the installation, and the next sections show what happens without it.
Step 4: Start Homarr
From the folder that holds both files:
docker compose up -d
The first start pulled the image in 46 seconds on our connection. A minute later, the container reported healthy:
docker compose ps --format 'table {{.Name}}\t{{.Image}}\t{{.Status}}'
Step 5: First start and the six setup steps
Open http://your-server-ip:7575 (http://192.168.1.20:7575 in our test). A new installation opens the setup page /init. Click Get started; Restore backup is for a backup ZIP from another Homarr.

Homarr has no default username or password. The first page creates the administrator account: a username and a password, with an 8-character minimum.

Then come six short steps. The documentation marks integrations, Workshop, Assistant and MCP as optional, so you can skip them and still get a working board.
1. Essentials
Language, color scheme and theme. The switch Share anonymous product analytics was on by default; we turned it off.

2. Discover
Homarr lists what it can reach. Through the Docker socket it found our containers: 2 integrations (Pi-hole and Uptime Kuma) and 1 additional app (Homarr itself). Kubernetes was disabled by server configuration, as expected on a Docker host.

3. Connect: check the Pi-hole port
Homarr proposed the services it had found and filled in their addresses. For Pi-hole it chose http://192.168.1.20:53: port 53 is where Pi-hole answers DNS queries, not its web interface, so Test connection failed.

We changed the address to the port of Pi-hole's web interface (8080 in our Pi-hole compose file, which maps it to port 80 in the container) and typed the Pi-hole password in Api Key. The test then passed. Homarr's documentation says it supports Pi-hole v5 and v6 and detects the version by itself.

The address must work from inside the Homarr container, as the documentation notes. The server's IP address with the published port is the simple choice. Homarr also offered Uptime Kuma, but its integration asks for a status page slug or an API key, and the test failed without them. We unchecked it and added Uptime Kuma as a plain app in Step 6.
4. Board
The board's name becomes its address: home gives /boards/home. The column count was 10 by default; the page itself says that 12 is plenty for most people. The sidebars stayed off.

5. Extend
Workshop (community widgets), Assistant and MCP, all optional. The Assistant switch was on by default; we left this step as it was.

6. Review
A summary of what Homarr will build. Click Build my board, then Open my board on the next page.

The new board already held a clock, a weather widget, tiles for Pi-hole and Homarr, and two Pi-hole widgets, DNS Hole Summary and DNS Hole Controls. It also had Homarr's own links (docs, GitHub, translation, support), a Useful Links bookmarks widget and an empty Statistics widget; we removed those in edit mode.
Step 6: Add an app and the Docker stats widget
An app is a saved shortcut: a name, an icon and an address. In the management area (/manage), open Apps > New app:
- Name: the label on the tile.
- Icon URL: search Homarr's icon library, paste an image address or upload a file. We used the icon Uptime Kuma serves itself.
- URL: the address the tile opens.
- Docker container: link the app to its container to get a status dot and start and stop buttons.
- Click Create.

Back on the board, click the pencil icon to enter edit mode, then Add board content > Add app, select the app and click Add:

Still in edit mode, Add board content > Add widget > Docker stats adds a table of your containers. Only administrators can add it. In its settings we kept the columns Name, State, CPU, Memory and Actions and removed Host, since all our containers run on one server. Click Save changes, then Save board.

The finished board:

The Pi-hole summary shows blocked queries, the percentage blocked, all queries and the blocklist size: 12 of 25 queries blocked (48%), with about 81,000 domains on the blocklists. The three dots on each Docker row open its logs and the start, stop, restart and remove actions, so treat the administrator password like a server password.
Back up and update Homarr
Homarr's data lives in two places: the appdata folder (the database) and the encryption key in .env. A backup needs both. There are two ways to make one.
From the web interface: Tools > Backup
With the default SQLite database, administrators can export the whole database from Manage > Tools > Backup:

Download Backup asks you to type "I understand" first, because the file holds every user, the API keys and the integration secrets:

Our export was a 2.6 MB ZIP with two files: db.sqlite and metadata.json. The metadata holds the Homarr version, the date, the database type, and the encryption key in plain text: the same 64 characters as our .env file. Anyone with this ZIP can read the integration secrets inside, so store it like a password. The same page restores a ZIP, and the documentation says a backup restored on a Homarr with a different key gets its secrets re-encrypted for that key.
From the command line: copy the folder, then update
The documentation says to stop Homarr before copying the appdata folder. In the folder that holds docker-compose.yml:
docker compose stop
sudo tar czf ~/homarr-backup-$(date +%F).tar.gz -C ~/homarr homarr/appdata .env
sudo chmod 600 ~/homarr-backup-*.tar.gz
ls -lh ~/homarr-backup-*.tar.gz
sudo is needed because the container runs as root and owns the appdata files. The archive contains the key, so chmod 600 keeps it for root only. Copy it to another disk or another machine: a backup on the same disk does not survive a disk failure. For automatic copies off the server, see Restic backup to Cloudflare R2 with Backrest.
To update, pull the newest v2 image and recreate the container. Homarr runs its database migrations by itself at startup:
docker compose pull
docker compose up -d
After the update, the board and the Pi-hole widget came back as before: same appdata folder, same key.
Troubleshooting: SECRET_ENCRYPTION_KEY is required
To see this error, we moved .env out of the folder and started Homarr again:
docker compose up -d
docker compose ps --format 'table {{.Name}}\t{{.Status}}'
docker compose logs homarr | grep -m 2 -E 'SECRET_ENCRYPTION_KEY is required|aborting startup'
Three signs, in order. Compose warns that the variable is not set and uses an empty string. The container never stays up: Restarting (1). The log gives the reason: SECRET_ENCRYPTION_KEY is required, then ERROR: DB migrations failed, aborting startup. The message also suggests a random key to use, but on an existing installation the fix is to bring back the original key, not to make a new one: the secrets in the database were encrypted with the old key.
Put .env back in the folder where you run docker compose (Compose reads it from there, not from your home folder), then start again:
ls -l .env
docker compose up -d
docker compose ps --format 'table {{.Name}}\t{{.Status}}'
Other first-start problems:
- Test connection fails for an integration: check the port first (Pi-hole's suggestion was its DNS port), then the address: it must be reachable from inside the Homarr container.
- The setup pages come back after a restart: the documentation's answer is that /appdata is not writable or not kept. Check the volume line of the compose file.
- Docker stats cannot be added: the documentation restricts this widget to administrators. Log in with the administrator account.
Is the Docker socket safe? What :ro does not do
The socket line gives Homarr the Docker API: the documentation lists start, stop, restart and remove in the Docker stats widget. Homarr runs as root by default (PUID 0 in its environment variables), so it can use the socket freely.
Many compose files mount the socket with :ro (read-only), Homepage's example among them. We tested what that changes: a container running as root, with the socket mounted :ro, asked Docker to restart Uptime Kuma.
docker run --rm -u 0 -v /var/run/docker.sock:/var/run/docker.sock:ro curlimages/curl -s -o /dev/null -w '%{http_code}\n' --unix-socket /var/run/docker.sock -X POST http://localhost/containers/uptime-kuma/restart
docker ps --filter name=uptime-kuma --format 'table {{.Names}}\t{{.Status}}'
Docker answered 204 (done) and Uptime Kuma restarted. :ro only stops the container from changing the socket file; requests sent through the socket still work. Your real choices are to leave the socket out (the documentation calls it optional; you lose container discovery, status and controls), or to put a Docker socket proxy in front of it, which Homarr's documentation supports with DOCKER_HOSTNAMES and DOCKER_PORTS. We did not test a proxy here. In every case, keep port 7575 on your home network: for access from outside, use a VPN such as Tailscale rather than a port forward.
Homarr vs Homepage: tested side by side
Homepage is the other popular dashboard. We installed version 2.9.1 on the same server with the same three services. Its setup is YAML: in a folder ~/homepage with a config folder inside, we saved this docker-compose.yml and config/services.yaml:
services:
homepage:
image: ghcr.io/gethomepage/homepage:latest
container_name: homepage
restart: unless-stopped
ports:
- 3000:3000
volumes:
- ./config:/app/config
- /var/run/docker.sock:/var/run/docker.sock:ro # optional: Docker integration
environment:
HOMEPAGE_ALLOWED_HOSTS: 192.168.1.20:3000- Home server:
- Pi-hole:
href: http://192.168.1.20:8080/admin/
icon: pi-hole.svg
siteMonitor: http://192.168.1.20:8080/admin/
- Uptime Kuma:
href: http://192.168.1.20:3001
icon: uptime-kuma.svg
siteMonitor: http://192.168.1.20:3001
- Homarr:
href: http://192.168.1.20:7575
icon: homarr.svg
siteMonitor: http://192.168.1.20:7575docker compose up -d
HOMEPAGE_ALLOWED_HOSTS is required since Homepage 1.0 for any address other than localhost: list the host and port you type in the browser. Homepage also wrote its default settings files into config on the first start, hence the resources bar, the search box and the example bookmarks:

Then the cost of each one, measured at the same moment with both running and idle:
docker stats --no-stream --format 'table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}' homarr homepage
docker images --format 'table {{.Repository}}\t{{.Tag}}\t{{.Size}}' | grep -E 'REPOSITORY|homarr|homepage'
| Homarr 2.15.0 | Homepage 2.9.1 | |
|---|---|---|
| Set up with | the browser: forms, drag and drop | YAML files in the config folder |
| Accounts | administrator, users and groups | none by default; a password or OIDC gate since 2.0 |
| Data | SQLite database in appdata, secrets encrypted with your key | the YAML files |
| Required setting | SECRET_ENCRYPTION_KEY | HOMEPAGE_ALLOWED_HOSTS |
| Memory in our test | 286.9 MiB | 154.3 MiB |
| Image size | 931 MB | 404 MB |
| Runs as | root by default (PUID 0) | root by default |
Choose Homarr if you want to build and change the board with the mouse, give accounts to the family, and get widgets with controls (Pi-hole's switch, container start and stop). Choose Homepage if you prefer a configuration you can copy, review and keep in Git, and want about half the memory.
Frequently asked questions
What port does Homarr use?
7575, as in the ports line of the compose file. To use another port on the server, change the left number only, for example '8090:7575'.
What is the default login for Homarr?
There is none. On the first visit you create the administrator account yourself, with a password of at least 8 characters.
What happens if I lose SECRET_ENCRYPTION_KEY?
Without the variable, Homarr does not start (see the troubleshooting section). The integration secrets in the database were encrypted with that key, so keep .env with your backups. The ZIP from Tools > Backup also contains the key.
Is Homarr lighter than Homepage?
No. In our test Homarr used 286.9 MiB of memory and its image took 931 MB; Homepage used 154.3 MiB with a 404 MB image.
How do I update Homarr?
Back up appdata and .env, then run docker compose pull and docker compose up -d. With the :v2 tag you stay on version 2; Homarr migrates its database by itself.
Can Homarr run without internet access?
Yes. The documentation lists NO_EXTERNAL_CONNECTION=true, which turns off Homarr's internet requests: update checks, weather, location search and RSS feeds.
Does Homarr need the Docker socket?
No. The documentation says to mount it only when Homarr needs Docker discovery or management. In our test, the socket is what let the setup find Pi-hole and Uptime Kuma, and it feeds the Docker stats widget and the status of apps linked to a container.
Related guides
- Pi-hole v6 with Docker Compose: Setup and Blocklists
- How to Install Uptime Kuma with Docker (2026 Step-by-Step Guide)
- Install Docker Compose on Ubuntu using Docker’s repository
- Docker Compose Up: Start Containers and Check They Work
- Beszel with Docker Compose: Server Monitoring and Alerts
- Tailscale 101: Setup, SSH, Exit Node and Docker
Sources
Leave a comment
Your email address will not be published. Required fields are marked *
