Back to Apps
Photoview

Deploy Photoview on Your Own Server

Photo gallery for self-hosted personal servers.

🎬 Media

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

Get Started

What is Photoview?

Photoview is a simple and user-friendly photo gallery that's made for photographers and aims to provide an easy and fast way to navigate directories, with thousands of high-resolution photos. You configure Photoview to look for photos and videos within a directory on your file system. The scanner automatically picks up your media and start to generate thumbnail images to make browsing super fast. When your media has been scanned they show up on the website, organised in the same way as on the filesystem.

Self-Host Photoview

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:
  photoview:
    image: viktorstrate/photoview:2.3.9
    environment:
      MAPBOX_TOKEN: ""
      PHOTOVIEW_DATABASE_DRIVER: mysql
      PHOTOVIEW_LISTEN_IP: 0.0.0.0
      PHOTOVIEW_LISTEN_PORT: "80"
      PHOTOVIEW_MEDIA_CACHE: /app/cache
      PHOTOVIEW_MYSQL_URL: photoview:95b07e9a3978fc69@tcp(photoview-mariadb)/photoview
    volumes:
      - photoview-media-cache:/app/cache
      - :/photos
    depends_on:
      - photoview-mariadb
  photoview-mariadb:
    image: mariadb:10.5
    environment:
      MYSQL_DATABASE: photoview
      MYSQL_PASSWORD: 95b07e9a3978fc69
      MYSQL_RANDOM_ROOT_PASSWORD: "1"
      MYSQL_USER: photoview
    volumes:
      - photoview-mariadb-data:/var/lib/mysql
volumes:
  photoview-media-cache: {}
  photoview-mariadb-data: {}

Then run:

docker compose up -d
4

Access

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

Why Self-Host Photoview?

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

viktorstrate/photoview:${photoview_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)"