A growing homelab quickly turns into a list of ports and bookmarks that nobody remembers. Homepage is an open-source, self-hosted dashboard that puts every service, status widget, and shortcut on one fast page, configured with plain YAML files that you can back up and track in Git.
This guide shows how to deploy Homepage with Docker Compose, set the required HOMEPAGE_ALLOWED_HOSTS variable, enable the built-in authentication gate, add services through Docker labels, connect widgets, and keep the dashboard safe. It follows the project’s official installation documentation at gethomepage.dev. Homepage can display data from your other systems, so treat it as a sensitive internal service rather than a harmless start page.
Why use Homepage instead of browser bookmarks
Bookmarks work until you have several devices, family members, or a second server. A dashboard gives everyone the same entry point, and Homepage adds information that bookmarks cannot show.
- One page for every service. Group media, monitoring, storage, and network tools into sections with icons and descriptions.
- Live status. Service widgets can show queue sizes, download speeds, container state, or monitor results from tools you already run.
- Plain configuration. Layout and services live in YAML files in a single config directory, which makes changes reviewable and easy to restore.
- Docker integration. Homepage can discover services from container labels, so a new container can appear on the dashboard when you deploy it.
If you are still planning the rest of your stack, the homelab setup guide for beginners and Docker basics for homelab cover the foundations this article assumes.
Requirements
You need a Linux host with Docker Engine and the Compose plugin, a directory for configuration, and a hostname or LAN address you will use to open the dashboard. Homepage itself is light, so it runs comfortably next to other services on a small server or mini PC.
Decide early how users will reach it:
- LAN only. Open it by IP address or local DNS name inside your network.
- VPN. Reach it from outside through a private network such as Tailscale, without publishing the port.
- Reverse proxy. Serve it on a domain with HTTPS and authentication in front.
The access method decides which hostnames you put in HOMEPAGE_ALLOWED_HOSTS and which URL you use for authentication.
Deploy Homepage with Docker Compose
Create a project directory and a config folder that the container will mount:
mkdir -p ~/homepage/config
cd ~/homepage
Create a .env file for values you do not want inside the Compose file. Generate the authentication secret with openssl rand -base64 32 and use a long, unique password:
cat > .env <<'EOF'
PUID=1000
PGID=1000
HOMEPAGE_ALLOWED_HOSTS=dash.example.com,192.168.1.20:3000
HOMEPAGE_EXTERNAL_URL=https://dash.example.com
HOMEPAGE_AUTH_SECRET=replace-with-output-of-openssl-rand-base64-32
HOMEPAGE_AUTH_PASSWORD=replace-with-a-strong-unique-password
EOF
chmod 600 .env
Then create compose.yaml:
services:
homepage:
image: ghcr.io/gethomepage/homepage:latest
container_name: homepage
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- ./config:/app/config
environment:
PUID: ${PUID}
PGID: ${PGID}
HOMEPAGE_ALLOWED_HOSTS: ${HOMEPAGE_ALLOWED_HOSTS}
HOMEPAGE_AUTH_ENABLED: "true"
HOMEPAGE_AUTH_SECRET: ${HOMEPAGE_AUTH_SECRET}
HOMEPAGE_AUTH_PASSWORD: ${HOMEPAGE_AUTH_PASSWORD}
HOMEPAGE_EXTERNAL_URL: ${HOMEPAGE_EXTERNAL_URL}
Make sure the config directory is owned by the user and group in PUID and PGID, then start the stack:
sudo chown -R 1000:1000 ./config
docker compose up -d
docker compose logs -f homepage
On first start Homepage writes default configuration files into ./config. Open http://192.168.1.20:3000 (or your chosen hostname), sign in with the password from .env, and you should see the starter layout.
The official image tag in the documentation is latest. For a predictable homelab, pin a specific release tag once you have a working setup, and upgrade on purpose rather than every time the container restarts.
Understand HOMEPAGE_ALLOWED_HOSTS
Since version 1.0, Homepage requires HOMEPAGE_ALLOWED_HOSTS when you open it through any address other than localhost:3000 or 127.0.0.1:3000. The value is a comma-separated list with no spaces, and some entries need the port, such as 192.168.1.20:3000.
The check protects the Homepage API proxy from requests that arrive with unexpected Host headers. If the page shows a host validation error, read the container logs and copy the host exactly as Homepage reports it into the list.
You can disable the check with *, but the project does not recommend it. The documentation also says the built-in check is a best-effort guard for local setups and does not replace a reverse proxy or VPN that enforces TLS, authentication, and Host header rules.
Enable authentication
Homepage widgets can display personal data from your other systems, such as home automation states or download activity. Version 2.0 added a simple authentication gate with either a password or OpenID Connect (OIDC). The Compose file above already enables password login with these variables:
HOMEPAGE_AUTH_ENABLED=trueHOMEPAGE_AUTH_SECRET, a random string of at least 32 characters used to sign and encrypt cookiesHOMEPAGE_EXTERNAL_URL, the absolute URL users open, including scheme and port when neededHOMEPAGE_AUTH_PASSWORD, unless you configure OIDC instead
Use an https:// external URL for public or TLS-terminated deployments so session cookies are marked Secure. Plain http:// is acceptable only on a trusted LAN.
Homepage does not rate limit password attempts itself. If the dashboard is reachable from outside your network, rate limit POST requests to /api/auth/callback/credentials at the reverse proxy. Each failed attempt is logged as a warning, which tools like fail2ban or CrowdSec can use.
For single sign-on, set HOMEPAGE_OIDC_ISSUER, HOMEPAGE_OIDC_CLIENT_ID, and HOMEPAGE_OIDC_CLIENT_SECRET. OIDC overrides password login. Homepage grants access to any identity your provider authorizes for the client, so restrict access with groups or policies at the identity provider. The Authentik SSO guide shows how to run a provider in your homelab, and the callback URI follows the pattern https://dash.example.com/api/auth/callback/homepage-oidc.
Add services in services.yaml
The main layout lives in config/services.yaml. Each top-level item is a group, and each group holds services:
- Monitoring:
- Uptime Kuma:
href: https://status.example.com
description: Service uptime checks
icon: uptime-kuma.png
- Storage:
- Syncthing:
href: https://sync.example.com
description: Private file sync
icon: syncthing.png
- Paperless:
href: https://docs.example.com
description: Document archive
icon: paperless-ngx.png
Homepage reloads configuration changes, so refresh the page after saving. If a change does not appear, check the logs for a YAML parsing error. Indentation mistakes are the most common cause.
Other files in the same directory control the rest of the page: settings.yaml for title, theme, and layout, widgets.yaml for information widgets at the top, and bookmarks.yaml for simple link lists.
Discover containers with Docker labels
Homepage can read container labels and add services automatically. This needs access to the Docker API. Mounting /var/run/docker.sock directly works, but the official documentation says it is not the recommended method, and it requires running Homepage as root or as a member of the docker group. Read-only socket access still exposes a lot of information about the host.
A safer pattern is a socket proxy that only allows read endpoints. Add it to the same Compose project and point Homepage at it:
services:
dockerproxy:
image: ghcr.io/tecnativa/docker-socket-proxy:latest
container_name: dockerproxy
restart: unless-stopped
environment:
CONTAINERS: "1"
SERVICES: "1"
TASKS: "1"
POST: "0"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
Then create config/docker.yaml:
my-docker:
host: dockerproxy
port: 2375
Do not publish port 2375 on the host. Homepage reaches the proxy over the Compose network by service name.
Now any container can describe itself with labels:
services:
uptime-kuma:
image: louislam/uptime-kuma:1
labels:
homepage.group: Monitoring
homepage.name: Uptime Kuma
homepage.icon: uptime-kuma.png
homepage.href: https://status.example.com
homepage.description: Service uptime checks
Label-based discovery keeps dashboard entries next to the service definition, so removing a service also removes its card.
Connect service widgets
Many service cards support widgets that pull live data through the service API. A widget usually needs a type, the internal URL, and an API key. Keep keys out of YAML by using Homepage’s environment substitution. Variables named HOMEPAGE_VAR_* replace {{HOMEPAGE_VAR_*}} placeholders, and HOMEPAGE_FILE_* variables point to files whose contents are inserted.
- Monitoring:
- Uptime Kuma:
href: https://status.example.com
icon: uptime-kuma.png
widget:
type: uptimekuma
url: http://uptime-kuma:3001
slug: homelab
For a widget that needs a key, add HOMEPAGE_VAR_SONARR_KEY to .env, pass it into the container environment, and reference it as key: "{{HOMEPAGE_VAR_SONARR_KEY}}". Create read-only or limited API keys where the target application supports them, because Homepage stores and uses them on every refresh.
Put Homepage behind a reverse proxy
For access by domain name, put Homepage behind a reverse proxy that terminates TLS. A minimal Caddy site block looks like this:
dash.example.com {
reverse_proxy homepage:3000
}
Add the domain to HOMEPAGE_ALLOWED_HOSTS, set HOMEPAGE_EXTERNAL_URL to the HTTPS address, and remove the host port mapping if the proxy reaches Homepage over a Docker network. The Caddy reverse proxy guide covers certificates and network layout. For remote access without exposing anything publicly, the Tailscale remote-access guide is the simpler option.
Back up and upgrade
Everything that defines your dashboard sits in ~/homepage/config plus compose.yaml and .env. Back up those files with the rest of your homelab data, as described in the Restic backup guide. Keeping the config directory in a private Git repository also works well, as long as .env and any secret files stay out of it.
To upgrade, read the release notes first, especially across major versions, because version 1.0 and 2.0 both introduced required or security-related settings. Then pull and recreate:
cd ~/homepage
cp -a config "config.backup-$(date +%F)"
docker compose pull
docker compose up -d
docker compose logs --tail=50 homepage
If the new version fails, restore the backup directory and pin the previous image tag.
Troubleshooting
- Host validation error. Add the exact host and port from the logs to
HOMEPAGE_ALLOWED_HOSTS. - Login loop. Check that
HOMEPAGE_EXTERNAL_URLmatches the address in the browser, including scheme and port, and that HTTPS is used when cookies are Secure. - Docker services missing. Confirm
docker.yamlpoints to the proxy service name and that the containers havehomepage.*labels. - Permission errors on config files. Match the ownership of
./configwithPUIDandPGID. - Widget shows an API error. Test the internal URL from inside the container network and verify the API key.
FAQ
Is Homepage safe to expose to the internet?
Only with protection in front. Enable the built-in authentication, serve it over HTTPS, rate limit login attempts at the proxy, and prefer VPN access. The project says public deployments must rely on a reverse proxy or VPN, not only the built-in checks.
Do I need to mount the Docker socket?
No. Docker integration is optional. If you want label discovery, use a read-only socket proxy instead of mounting the socket into Homepage directly.
Where does Homepage store its configuration?
In the /app/config directory inside the container, which you mount from the host. It contains YAML files such as services.yaml, settings.yaml, widgets.yaml, bookmarks.yaml, and docker.yaml.
Can I use single sign-on?
Yes. Since version 2.0, Homepage supports OIDC through environment variables. Configure access restrictions at your identity provider, because Homepage accepts any identity the provider authorizes for its client.
How is Homepage different from Uptime Kuma?
Uptime Kuma checks whether services are up and sends alerts. Homepage is the front page that links to services and can display Uptime Kuma results in a widget. Many homelabs run both.