2026-11-21 · glance · dashboard · docker · self-hosting
Run Glance Dashboard in Docker: Self-Hosted Feed Hub
Deploy the Glance dashboard with Docker Compose: a lightweight Go binary that aggregates RSS, weather, and server stats behind a reverse proxy.
- Total RAM
- 21.6 MB
- Startup
- 37.6 s
- Port
- 8080
- HTTP
- 200
What Glance does and what it needs
Glance is a single-binary Go dashboard that pulls your feeds into one page: RSS, Reddit, Hacker News, YouTube uploads, weather, market prices, Docker container status, and server stats. It ships as a <20 MB binary and an equally small Docker image, so it runs comfortably next to other services on a shared VPS.
There is no database, no cache service, and no admin account. The entire configuration lives in YAML files under /app/config, and the app reads them on every page load. Widgets fetch data on demand and cache it in memory, so there is no background polling. That means the only persistent state you need to back up is the config directory.
The upstream project does not publish a minimum memory figure. In practice, idle memory is dominated by the Go runtime and the number of widgets on a page; a dashboard with a dozen widgets is tiny, while pages with many RSS feeds or large custom API responses will use more. CPU is only touched during page loads and upstream fetches.
Prerequisites, ports, and volume constraints
You need Docker Engine 24+ and the Compose plugin on a Linux host. Glance listens on port 8080 inside the container. The official compose template publishes 8080:8080; we bind it to 127.0.0.1:8080 instead so the dashboard is not exposed unencrypted on the public IP when a reverse proxy sits in front.
The only volume is a bind mount of ./config to /app/config. Glance expects glance.yml at the root of that directory. If you also use home.yml or other included pages, keep them in the same folder and reference them from glance.yml.
There is no .env file required by the app itself. The official template mentions an optional .env for variables used inside configuration files, but the container does not need secrets to boot. We keep a .env for TZ and the published port so the compose file stays portable.
Production Docker Compose setup
Create the project directory and the config folder, then drop in the starting glance.yml from the upstream repo:
mkdir -p ~/glance/config && cd ~/glance
wget -O config/glance.yml https://raw.githubusercontent.com/glanceapp/glance/refs/heads/main/docs/glance.yml
Write the compose file. It follows the official manual compose structure, adds a healthcheck, and binds the port to localhost:
cat <<'EOF' > compose.yml
services:
glance:
container_name: glance
image: glanceapp/glance:latest
restart: unless-stopped
environment:
TZ: ${TZ:-UTC}
configs:
- source: glance_yml
target: /app/config/glance.yml
ports:
- "127.0.0.1:${GLANCE_PORT:-8080}:8080"
configs:
glance_yml:
content: |
pages:
- name: Home
columns:
- size: small
widgets:
- type: clock
hour-format: 24h
- type: calendar
- size: full
widgets:
- type: hacker-news
limit: 10
EOF
Create the .env file. There are no secrets to generate for Glance, but keep the timezone explicit so widget timestamps and calendar entries match your locale:
cat <<'EOF' > .env
TZ=UTC
GLANCE_PORT=8080
EOF
Start the stack:
docker compose up -d
docker compose logs -f glance
Open http://127.0.0.1:8080 on the VPS, or tunnel it from your laptop with ssh -L 8080:127.0.0.1:8080 user@your-vps and visit http://localhost:8080. The default glance.yml renders a working dashboard immediately, so you can edit widgets before putting it behind a domain.
Reverse proxy, HTTPS, and first-run hardening
Glance has no login screen. Anyone who can reach the port sees every widget, including server stats and Docker container names. Treat the reverse proxy as the authentication boundary.
Caddy is the shortest path. Point a DNS record at the VPS and use a site block like this:
dashboard.example.com {
encode zstd gzip
reverse_proxy 127.0.0.1:8080
}
Caddy handles TLS and forwards X-Forwarded-For and X-Forwarded-Proto automatically. Glance does not require a PUBLIC_URL or WEBHOOK_URL variable, but some widgets build absolute links from the request host, so make sure the proxy preserves the Host header. Nginx users should set proxy_set_header Host $host; and proxy_set_header X-Forwarded-Proto $scheme; explicitly.
If you want a password prompt without adding an identity provider, put basic auth in front of the site. With Caddy, generate a hash with caddy hash-password and add:
basicauth {
admin $2a$14$...
}
For Nginx, use auth_basic and an htpasswd file. Either way, keep the container port bound to 127.0.0.1 so the only way in is through the proxy.
Two widget-specific notes. First, the server-stats widget reads host metrics; inside a container it sees the container’s view unless you mount host paths, which we deliberately avoid. Use it for container-level stats or pair Glance with a dedicated exporter. Second, the docker-containers widget needs access to the Docker socket to list containers. Do not mount /var/run/docker.sock into Glance; if you need that widget, run a read-only socket proxy and point the widget at its API instead.
Updating, backups, and common pitfalls
Update by pulling the new image and recreating the container. Configuration lives on the host, so the swap is safe:
cd ~/glance
docker compose pull
docker compose up -d
docker compose logs --tail=50 glance
Back up the config directory. That is the entire state of the app:
tar -czf glance-config-$(date +%F).tar.gz -C ~/glance config
Restore by extracting the archive back into ~/glance and running docker compose up -d. There is no database volume to dump and no migration step.
Two pitfalls from the upstream docs are worth knowing before you debug anything else.
Requests timing out. If you run Pi-hole, AdGuard Home, or another DNS filter on the same network, its default rate limit is easy to exceed when a page loads many widgets at once. Raise the rate limit in the DNS service, or point the container at a resolver that does not filter.
cannot unmarshal !!map into []glance.page. This happens when glance.yml defines a pages key and an included page file also defines pages. Remove the pages key from the included file and keep the top-level list in glance.yml only.
A third issue that is not Glance’s fault: broken layouts on markets or bookmarks widgets are almost always the Dark Reader browser extension. Disable it for the dashboard domain.
Measured in our sandbox run: total memory 21.6 MB (sum of per-container peaks over a 30s idle window after startup) across 1 container; largest container 21.6 MB; published port(s) 8080; HTTP probe returned 200. The run took 37.6s with the image already cached; a fresh server also has to download it.
Verification: we ran this docker-compose stack in a disposable Docker environment and recorded the measurements above. They describe that run, not a guarantee for your host.