PiGallery 2
★ 2.3kMIT LicenseOpen Source — No Paywall2 Containers — 2 containers — light hosting footprintDocker · SourceNo external DB12+ active committers (12mo)
About
PiGallery2 is a photo gallery web application designed for users who want a lightweight way to browse and present their photo directories. It is positioned as a directory-first gallery, meaning it...
Community Ratings
No ratings yetNew this week
Read recap →Weekly Recap — Oct 2, 2026 – Oct 9, 2026Oct 9, 2026
Features
- fast performance
- low-resource server optimization
- directory-first browsing
- read-only photo library
- live demo
Details
- Last Updated
- Oct 11, 2026
- Created
- Mar 12, 2016
- Install Methods
- dockersource
- Requirements
- Node.js
- Runtime / Stack
- DockerNodejs
- Privacy & Independence
- No Cloud Required
- Deployment
Deployment: Docker Compose ✓2 Containers — light hosting footprintRuns as 2 containers
Run PiGallery 2 with Docker Compose
Compose file from the PiGallery 2 project repository.
2 services · infra: nginx
≈3.0 GB RAM requested (from Docker memory limits)
needs persistent storage (8 volumes)
docker/docker-compose/default/docker-compose.yml · @ dc45695 · scanned Sep 23, 2026
version: '3'
services:
nginx:
image: nginx:latest
container_name: nginx
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./nginx/error.log:/etc/nginx/error_log.log
- ./nginx/cache/:/etc/nginx/cache
- /etc/letsencrypt/:/etc/letsencrypt/
ports:
- 80:80
- 443:443
restart: always
pigallery2:
image: bpatrik/pigallery2:latest
container_name: pigallery2
deploy:
resources:
limits:
memory: 3G # <1GB RAM might also work. It will trigger GC more often. GC is slow. See https://github.com/bpatrik/pigallery2/issues/1080
environment:
- NODE_ENV=production # set to 'debug' for full debug logging
# - NODE_OPTIONS=--enable-source-maps # enable source map support on the backend for development
# volumes are "host path: docker path", see: https://docs.docker.com/reference/compose-file/volumes/
volumes:
- "./pigallery2/config:/app/data/config" # CHANGE ME
- "db-data:/app/data/db"
- "./pigallery2/images:/app/data/images:ro" # CHANGE ME, ':ro' means read-only
- "./pigallery2/tmp:/app/data/tmp" # CHANGE ME
expose:
- "80"
restart: always
volumes:
db-data:
This file may be out of date. Check the PiGallery 2 documentation for current setup steps.
Tags
Track your self-hosted stack
Bookmark software to try, rate tools you've used, and keep your collection in one place.
Metadata extracted from README on Mar 25, 2026
Related Software
Immich
116.0k
High performance self-hosted photo and video management solution.
Photo GalleriesCopyleft LicenseMedia Management+1
6 Containers
LibrePhotos
8.1k
LibrePhotos is a self-hosted photo management service with face recognition, object detection, and semantic search.
Photo GalleriesMedia ManagementArtificial Intelligence+2
PhotoPrism
40.3k
An AI-powered photo and video library for browsing, organizing, searching, and sharing media privately.
Photo GalleriesFOSS with IssuesCopyleft License+4
13 ContainersOpen CoreFOSS with Issues
Piwigo
3.9k
Piwigo is an open source web-based photo gallery for managing and sharing photo libraries.
Photo GalleriesMedia ManagementCMS Platforms+3
Fully FOSS
Photoview
6.5k
Photoview is a self-hosted photo gallery that scans local directories, generates thumbnails, and organizes photos and videos for fast browsing.
Photo GalleriesMedia ManagementSelf Hosting Solutions+2
4 ContainersFully FOSS
Chibisafe
2.8k
Chibisafe is a self-hosted file uploader service that generates shareable links for uploaded files, photos, documents, and other content.
Simple File UploadsFile & Object StorageMedia Management+5
Nextcloud Memories
3.9k
Memories is a photo management app for Nextcloud with timeline browsing, sharing, metadata editing, and AI-based tagging.
Photo GalleriesCopyleft LicenseMedia Management+3
5 ContainersCloud Required
Slink
1.6k
Slink is a self-hosted image sharing platform for uploading, organizing, and sharing images privately.
Simple File UploadsCopyleft LicensePhoto Galleries+3
Immich Kiosk
1.7k
Highly configurable slideshows for displaying Immich assets on browsers and devices.
Photo GalleriesMedia ManagementSelf Hosting Solutions+2
Single Container
ChronoFrame
1.9k
A self-hosted web application for photo display and management with map-based browsing, EXIF parsing, and multi-format image support.
Photo GalleriesPermissive LicenseMedia Management+3
Lychee
4.3k
Lychee is a free, open-source photo management system for uploading, organizing, and sharing photos from a server or web space.
Photo GalleriesMedia ManagementSelf Hosting Solutions+2
Open Core
Photofield
608
Photofield is a self-hosted, single-binary photo gallery and viewer focused on speed, simplicity, and displaying large collections efficiently.
Photo GalleriesPermissive LicenseMedia Management+1
5 Containers
