Deploy PiGallery2 in one click installation.
Fast, directory-first self-hosted photo gallery that turns a folder of images on disk into a polished web album.
What you can build with PiGallery2
PiGallery2 is an open-source self-hosted photo gallery that takes a directory of images on disk and serves it as a fast, modern web gallery — no upload pipeline, no proprietary database, no SaaS dependency. The directory layout you already use becomes the album structure visitors browse, so it works equally well for personal photo archives, event galleries, family vacation albums, and lightweight portfolios.
Self-hosting PiGallery2 on your own VPS keeps photos and metadata inside infrastructure you control rather than a public photo service that mines image content for face recognition or training data. The Node.js backend is intentionally lightweight — it was designed to run well on a Raspberry Pi — so a small VPS plan comfortably hosts tens of thousands of images while still serving fast thumbnails and rich UI.
Key features of PiGallery2
Directory-first model
Your existing folder structure becomes the album hierarchy — drop new photos in via SCP, rsync, or a sync tool and they appear in the gallery automatically.
Fast thumbnails
Background indexer generates thumbnails in multiple sizes, cached on disk so visitors get smooth scrolling even on cold loads.
EXIF and map view
Reads EXIF metadata to power per-photo info pages, geotagged map views, and search by camera, date, or tag.
Search and filtering
Search by date range, location, faces, tags, ratings, or filename without external indexers — all metadata stays in the local SQLite DB.
Sharing and privacy
Generate shareable links per album with optional passwords and expiry dates, or restrict albums to authenticated users only.
Read-only library
The image directory is mounted read-only so the server cannot accidentally modify or delete original photos during scans or thumbnail generation.
Why run PiGallery2 on Hostinger
Launch in one click
Get your application up and running instantly with a preconfigured setup. No manual installation or complex setup steps.
Security you can rely on
Keep your applications protected with a built-in firewall, DDoS protection, and continuous monitoring.
Built in Docker manager
Run and manage multiple Docker containers from one place. Deploy, update, and monitor your projects with ease.
Launch in one click
Get your application up and running instantly with a preconfigured setup. No manual installation or complex setup steps.
Security you can rely on
Keep your applications protected with a built-in firewall, DDoS protection, and continuous monitoring.
Built in Docker manager
Run and manage multiple Docker containers from one place. Deploy, update, and monitor your projects with ease.