Self-host Glance with Docker Compose
A self-hosted start page that puts your feeds, news and services on one dashboard.
The steps below take a few minutes end to end.
Requirements
You'll need these installed on the machine you're deploying to:
Docker
Packages Glance and everything it depends on into an isolated container, so it runs the same way on your machine as it does everywhere else.
Install guideDocker Compose
Reads docker-compose.yml and starts everything in it together. Ships with Docker Desktop. On Linux servers it's usually a separate install.
Install guide1. Docker compose setup and file
Create a folder for Glance and save the file below into it as docker-compose.yml. It describes every container the stack needs — Glance itself and any supporting services, such as its database — along with the ports, volumes and environment variables each one uses. You'll also need an empty .env file in the same folder; Docker Compose reads it automatically and uses it to fill in the ${VARIABLE} references you'll see in the file below.
docker-compose.yml
version: "3.9"
services:
glance:
image: glanceapp/glance:v0.8.8
restart: unless-stopped
ports:
- 8080:8080
configs:
- source: glance-glance.yml
target: /app/config/glance.yml
configs:
glance-glance.yml:
content: |
server:
port: 8080
theme:
background-color: 225 14 15
primary-color: 157 47 65
contrast-multiplier: 1.1
pages:
- name: Home
columns:
- size: small
widgets:
- type: calendar
first-day-of-week: monday
- type: rss
title: Blogs
limit: 10
collapse-after: 4
cache: 3h
feeds:
- url: https://selfh.st/rss/
title: selfh.st
limit: 4
- url: https://blog.cloudflare.com/rss/
title: Cloudflare
- url: https://go.dev/blog/feed.atom
title: The Go Blog
- type: bookmarks
groups:
- title: Self-hosting
links:
- title: Bitflake
url: https://bitflake.com
- title: selfh.st
url: https://selfh.st
- title: Awesome Self-Hosted
url: https://awesome-selfhosted.net
- size: full
widgets:
- type: group
widgets:
- type: hacker-news
- type: lobsters
- type: videos
channels:
- UCR-DXc1voovS8nhAvccRZhg # Jeff Geerling
- UCsBjURrPoezykLs9EqgamOA # Fireship
- UCHnyfMqiRRG1u-2MsSQLbXA # Veritasium
- size: small
widgets:
- type: weather
location: London, United Kingdom
units: metric
hour-format: 24h
- type: monitor
title: Services
cache: 1m
sites:
- title: GitHub
url: https://github.com
icon: si:github
- title: Docker Hub
url: https://hub.docker.com
icon: si:docker
- title: Codeberg
url: https://codeberg.org
icon: si:codeberg
- title: Cloudflare
url: https://www.cloudflare.com
icon: si:cloudflare
- type: releases
cache: 6h
repositories:
- glanceapp/glance
- go-gitea/gitea
- immich-app/immich
- syncthing/syncthing
- name: Self-hosted
columns:
- size: full
widgets:
- type: rss
title: Self-hosted news
style: detailed-list
limit: 12
cache: 3h
feeds:
- url: https://selfh.st/rss/
title: selfh.st
- url: https://www.reddit.com/r/selfhosted/.rss
title: r/selfhosted
- size: small
widgets:
- type: repository
repository: glanceapp/glance
pull-requests-limit: 5
issues-limit: 3
2. Start Glance with Docker Compose
From the folder with docker-compose.yml and .env, run:
Terminal
Start Glance and all its supporting services in the background.
docker compose up -dThe -d flag runs the stack in the background so it keeps running after you close the terminal. Docker will pull the images the first time, which can take a minute or two.
To check on it afterwards: docker compose ps shows whether containers are healthy, and docker compose logs -f follows their logs if something looks wrong. Once it's running, open http://localhost:8080 in your browser.