Mad World #Save_GAZA: Free Palestine  

Search

Homarr Dashboard with Docker Compose: Tested Setup

Homarr Dashboard with Docker Compose: Tested Setup

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.

  1. Install Docker Engine and the Docker Compose plugin.
  2. 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.
  3. Run docker compose up -d in that folder.
  4. Open http://your-server-ip:7575, click Get started and create the administrator account. There is no default login.
  5. Follow the six setup steps, then add apps and widgets in edit mode.
  6. 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:

Homarr board at the end of the test: tiles for Pi-hole, Uptime Kuma and Homarr, a clock, the weather, Pi-hole widgets, and Docker stats for homarr, homepage, pihole and uptime-kuma
The finished board. Homepage, which we compare with Homarr below, also runs on the server.

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:

Terminal
docker --version
docker compose version
Terminal on an Ubuntu server: docker --version prints Docker version 29.10.1 and docker compose version prints Docker Compose version v5.8.1
1: Docker Engine. 2: the Compose plugin.

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:

Code
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'
Terminal: cat docker-compose.yml shows the homarr service with the image ghcr.io/homarr-labs/homarr:v2, the Docker socket and ./homarr/appdata volumes, SECRET_ENCRYPTION_KEY and port 7575
1: the compose file of this guide.

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. :v2 follows 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:

Terminal
echo "SECRET_ENCRYPTION_KEY=$(openssl rand -hex 32)" > .env
chmod 600 .env
ls -l .env
Terminal: openssl rand -hex 32 writes SECRET_ENCRYPTION_KEY into a .env file, chmod 600 locks it, and ls -l shows -rw------- with 87 bytes
1: a new random key in .env. 2: only your user can read it. 3: the file, 87 bytes.

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:

Terminal
docker compose up -d
Terminal: docker compose up -d pulls the image ghcr.io/homarr-labs/homarr:v2 in 46.4 seconds, creates the network homarr_default and starts the container homarr
1: the first start pulls the image and starts Homarr.

The first start pulled the image in 46 seconds on our connection. A minute later, the container reported healthy:

Terminal
docker compose ps --format 'table {{.Name}}\t{{.Image}}\t{{.Status}}'
Terminal: docker compose ps shows homarr with the image ghcr.io/homarr-labs/homarr:v2 and the status Up 6 minutes (healthy)
1: the container is up and healthy.

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 at port 7575, page /init: Welcome home. Welcome to Homarr v2.15.0, with the buttons Get started and Restore backup
1: start a new installation.

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

Homarr onboarding, Create your administrator: username admin, a password typed twice, the note that only the 8-character minimum is required, and Create administrator
1: the administrator username. 2: create the account.

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.

Homarr onboarding step 1, Essentials: language English (US), color scheme Dark, theme Homarr, and the switch Share anonymous product analytics turned off
1: the analytics switch, on by default, turned off here. 2: the next step.

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.

Homarr onboarding step 2, Discover: Database sqlite available, Docker and compatible sockets available with 2 integrations and 1 additional app found, Kubernetes disabled
1: what Homarr found through the Docker socket. 2: the next step.

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.

Homarr onboarding step 3, Configure integrations: pihole with the service URL http://192.168.1.20:53 filled in by Homarr, an Api Key, and Test connection failed with a cross
1: the address Homarr suggested, on the DNS port 53. 2: the connection test fails.

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.

Same form with the service URL changed to http://192.168.1.20:8080, the Pi-hole web port, and Test connection now passed with a check mark
1: the web port of Pi-hole. 2: the connection test passes.

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.

Homarr onboarding step 4, Board: board name home, used in the board URL, and Board columns set to 10, with left and right sidebar switches off
1: the board name, also its address. 2: the number of columns.

5. Extend

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

Homarr onboarding step 5, Extend: Advanced features with the Assistant switch and its provider settings, and the Continue button
1: everything on this step is optional.

6. Review

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

Homarr onboarding step 6, Review: first board home, 10 columns, no sidebars, Mobile and Base layouts, 1 integration, 2 app tiles, language en, Dark, theme Homarr, and Build my board
1: the Pi-hole integration from step 3. 2: build the board.

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:

  1. Name: the label on the tile.
  2. Icon URL: search Homarr's icon library, paste an image address or upload a file. We used the icon Uptime Kuma serves itself.
  3. URL: the address the tile opens.
  4. Docker container: link the app to its container to get a status dot and start and stop buttons.
  5. Click Create.
Homarr, Apps, New app: name Uptime Kuma, icon URL http://192.168.1.20:3001/apple-touch-icon.png, URL http://192.168.1.20:3001, Docker container uptime-kuma (Local Docker), and Create
1: the name on the tile. 2: the icon. 3: the address the tile opens. 4: the container, for its status and start and stop buttons. 5: save the app.

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

Homarr board in edit mode, Select an app to add to this board: the Uptime Kuma app selected and the button Add (1)
1: the new app. 2: add it to the board.

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.

Homarr, Edit item, Docker stats widget: a preview with homarr, pihole and uptime-kuma, Columns to show Name, State, CPU, Memory and Actions, and Save changes
1: the preview, one row per container. 2: the columns to show. 3: save the widget.

The finished board:

Finished Homarr board: tiles pihole, Uptime Kuma and homarr with green status dots, a clock, the weather, the Pi-hole summary 12, 48%, 25 and 81k, and Docker stats with memory per container
1: the new app, with its status dot. 2: the Pi-hole summary: blocked, percentage, queries and blocklist size. 3: Docker stats for each container.

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:

Homarr, Tools, Backup page: Export Database with Download Backup, and Restore Database with a drop area for a backup ZIP
1: export the whole database as a ZIP. 2: restore one.

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

Homarr export warning Sensitive data export: the backup includes all users, encrypted integration secrets, API keys and board configurations; I understand typed in the field, then Export Database
1: the confirmation text. 2: download the ZIP.

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:

Terminal
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
Terminal: docker compose stop, sudo tar of homarr/appdata and .env into homarr-backup-2026-12-03.tar.gz, sudo chmod 600, and ls -lh showing a 3.0M file readable by root only
1: stop Homarr. 2: archive the data folder and the key. 3: lock the archive. 4: the backup, 3.0 MB.

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:

Terminal
docker compose pull
docker compose up -d
Terminal: docker compose pull pulls ghcr.io/homarr-labs/homarr:v2 and docker compose up -d starts the container homarr again
1: get the latest v2 image. 2: start Homarr with it.

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:

Terminal
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'
Terminal: without .env, docker compose warns that SECRET_ENCRYPTION_KEY is not set, the container shows Restarting (1), and the log says SECRET_ENCRYPTION_KEY is required and DB migrations failed
1: Compose starts Homarr with an empty key. 2: the container restarts again and again. 3: the reason in the log.

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:

Terminal
ls -l .env
docker compose up -d
docker compose ps --format 'table {{.Name}}\t{{.Status}}'
Terminal: with .env back in the folder, docker compose up -d starts homarr and docker compose ps shows Up 25 seconds (healthy)
1: the key file is back. 2: start Homarr. 3: healthy again.

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.

Terminal
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}}'
Terminal: a container running as root with the Docker socket mounted read-only (:ro) sends a restart for uptime-kuma, gets HTTP 204, and uptime-kuma shows Up 1 second
1: a restart sent through a socket mounted :ro is accepted (204). 2: Uptime Kuma did restart.

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:

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
Code
- 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:7575
Terminal
docker compose up -d
Terminal: the Homepage docker-compose.yml with HOMEPAGE_ALLOWED_HOSTS 192.168.1.20:3000, a services.yaml with Pi-hole, Uptime Kuma and Homarr, and docker compose up -d
1: the compose file. 2: the services, written by hand in YAML. 3: the first start.

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:

Homepage at port 3000: a Home server group with Pi-hole, Uptime Kuma and Homarr and their response times, a resources bar, a search box and default bookmarks
1: the three services from services.yaml, each with its response time.

Then the cost of each one, measured at the same moment with both running and idle:

Terminal
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'
Terminal: docker stats shows homarr at 286.9 MiB and homepage at 154.3 MiB of memory; docker images shows the Homepage image at 404 MB and the Homarr image at 931 MB
1: memory in use. 2: image size on disk.
Homarr 2.15.0Homepage 2.9.1
Set up withthe browser: forms, drag and dropYAML files in the config folder
Accountsadministrator, users and groupsnone by default; a password or OIDC gate since 2.0
DataSQLite database in appdata, secrets encrypted with your keythe YAML files
Required settingSECRET_ENCRYPTION_KEYHOMEPAGE_ALLOWED_HOSTS
Memory in our test286.9 MiB154.3 MiB
Image size931 MB404 MB
Runs asroot 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.

Sources

Yassine

Yassine runs IGPROD and has written about Synology NAS, Docker and self-hosting here since 2022. About IGPROD

Leave a comment

Your email address will not be published. Required fields are marked *

Your experience on this site will be improved by allowing cookies Cookie Policy