Back to Apps
PiGallery2

Deploy PiGallery2 on Your Own Server

A fast directory-first photo gallery website, with rich UI, optimized for running on low resource servers (especially on raspberry pi)

πŸ› οΈ Developer Tools🎬 Media

Want to deploy PiGallery2 on your server faster? Try Senate with one-command setup, automatic HTTPS and monitoring.

Get Started

What is PiGallery2?

This is a **fast** (like faster than your PC fast) **directory-first photo gallery website**, optimised for running on low resource servers (especially on raspberry pi).

Self-Host PiGallery2

Follow these steps to deploy on your own server.

1

Install Docker

Skip this step if Docker is already installed on your server.

curl -fsSL https://get.docker.com | sh
2

Configure

Customize the settings below. Defaults work for most cases.

General
3

Deploy

Copy the configuration and run it on your server.

services:
  pigallery2:
    image: bpatrik/pigallery2:2.0.0
    environment:
      NODE_ENV: production
    volumes:
      - pigallery2-config:/app/data/config
      - pigallery2-db:/app/data/db
      - :/app/data/images
      - pigallery2-tmp:/app/data/tmp
volumes:
  pigallery2-config: {}
  pigallery2-db: {}
  pigallery2-tmp: {}

Then run:

docker compose up -d
4

Access

Once started, access your app at http://localhost:80

Why Self-Host PiGallery2?

Full Data Ownership

Your data stays on your servers. No third-party access.

No Monthly Fees

Pay only for your server. No per-seat or usage charges.

Complete Control

Customize, backup, and scale on your own terms.

Privacy & Compliance

Meet GDPR, HIPAA, or internal security requirements.

Technical Details

Docker Image

bpatrik/pigallery2:${version}

Want to go faster?

Try Senate! Senate handles Docker, HTTPS, updates, and monitoring for you. Deploy any of our 300+ apps with a single command.

Install on any Linux server:

sh -c "$(curl -sSL https://get.senate.sh)"