Skip to the content.

HomeGallery

Self-hosted web gallery for your photos and videos, with albums

Upstream: xemle/home-gallery License: MIT

This is a fork of HomeGallery by Sebastian Felis, a self-hosted web gallery to browse the photos and videos of your own disks from the phone or the computer.

The fork adds an albums page that follows the folders of your media, an ‘On This Day’ page, new layouts, orders and settings for the media lists, and a media view that stays out of the way. It also makes long lists faster, fixes a number of bugs and adds a Windows archive build. See Changes from upstream for the details.

Everything else works as in upstream: similar image and face search, the query language, tags, the map, video transcoding, the static export and the API server. For those, see the upstream README and the upstream documentation.

The fork is based on the upstream master after HomeGallery 1.21.0 (June 2026).

Highlights

Changes from upstream

Albums

On This Day

Media lists

Media view

Speed

Pages and navigation

Dates and time zone

Builds

Bugs fixed

Configuration

The new options are listed, with their defaults, in gallery.config-example.yml. All of them are optional.

Option Default Description
database.timezone local local or utc, see Dates and time zone
webapp.pages.landing all First page: all, albums, years, tags or map
webapp.pages.disabled   New flags album, onThisDay and all hide these pages
webapp.pages.albums.view list list (tree) or grid
webapp.pages.albums.order name name or nameDesc
webapp.pages.albums.thumbnailSize medium xsmall, small, medium, large or xlarge
webapp.pages.albums.showCover true Show the cover thumbnails
webapp.pages.albums.showIndex false Show each media source as a root album
webapp.pages.albums.recentDays 3 Days an album is marked as new or updated, 0 turns it off
webapp.pages.list.thumbnails list Layout: list, grid or fluent
webapp.pages.list.thumbnailSize medium xsmall, small, medium, large or xlarge
webapp.pages.list.showFilename true File names below the thumbnails of the grid and fluent layouts
webapp.pages.list.scrollbar true Show the date scrollbar
webapp.pages.list.defaultOrder date desc Order of a search without order by, e.g. filename asc or filesize desc
webapp.pages.mediaView.autoPlayVideo true Start a video when it is opened
webapp.pages.mediaView.disabled   New flag share hides the share link, nav also hides the file name

The view settings of the nav bar are kept by the browser and overrule these defaults until they are reset in the settings menu.

The “New” and “Updated” badges and the time zone need a database built by this fork. Run gallery database once after moving from upstream or from an older version of the fork.

Installing

The fork has no releases and no Docker image of its own. Build it in one of these ways.

Docker

git clone https://github.com/jurakovic/home-gallery.git
cd home-gallery && docker build -t home-gallery .

Then use it like the upstream image, with home-gallery instead of xemle/home-gallery:

mkdir -p data
alias gallery="docker run -ti --rm \
  -v $(pwd)/data:/data \
  -v $HOME/Pictures:/data/Pictures \
  -u $(id -u):$(id -g) \
  -p 3000:3000 home-gallery"
gallery init --source /data/Pictures
gallery run server

Open localhost:3000 in the browser. The configuration is in ./data/config/gallery.config.yml.

From source

It needs NodeJS 20 or later.

git clone https://github.com/jurakovic/home-gallery.git
cd home-gallery && npm install && npm run build
./gallery.js init --source ~/Pictures
./gallery.js run server

Binaries

Upstream

License

MIT, Copyright 2025 Sebastian Felis.