SH SelfHostAlt
Sponsored Self-host any open-source app on Hostinger KVM VPS from $4.99/mo (1-Click Docker) →
PhotoPrism logo

PhotoPrism

AGPL-3.0 Docker Ready ★ 40,487 Stars Active · 2026-11-28

Personal photo management powered by Go and Google TensorFlow. Browse, organize, and share your personal photo collection, using the latest technologies to automatically tag and find pictures. , Source Code.

Category
Photo Galleries
Tech Stack / Runtime
Go/Docker
Open-Source License
AGPL-3.0
GitHub Health
★ 40,487 · 2,341 forks
#golang#tensorflow#photography#private-cloud#google-photos

Commercial SaaS Replaced

Official compose.yaml

Quick Docker Compose Reference for PhotoPrism

## FOR TEST AND DEVELOPMENT ONLY, DO NOT USE IN PRODUCTION   ##
## Setup: https://docs.photoprism.app/developer-guide/setup/ ##

services:
  ## PhotoPrism Build & Test Environment
  photoprism:
    build:
      context: .
      dockerfile: ${DOCKERFILE:-Dockerfile}
      args:
        - WORKING_DIR=${WORKING_DIR:-/go/src/github.com/photoprism/photoprism}
        - DOCKERFILE_IMAGE_TAG
    image: photoprism/photoprism:develop
    depends_on:
      - mariadb
      - dummy-webdav
      - dummy-oidc
    stop_grace_period: 15s
    security_opt:
      - seccomp:unconfined
      - apparmor:unconfined
    ## Publish the dev environment's HTTP, TLS, and debugger ports on the host
    ## (bound to 127.0.0.1 by default; override SERVICES_BIND_HOST to change):
    ports:
      - "${SERVICES_BIND_HOST:-127.0.0.1}:2342:2342"   # HTTP (default)
      - "${SERVICES_BIND_HOST:-127.0.0.1}:2443:2443"   # TLS (default)
      - "${SERVICES_BIND_HOST:-127.0.0.1}:2343:2343"   # HTTP (acceptance tests)
      - "${SERVICES_BIND_HOST:-127.0.0.1}:40000:40000" # Go debugger
    shm_size: "2gb"
    ## Set links and labels for use with Traefik reverse proxy
    links:
      - "traefik:localssl.dev"
      - "traefik:app.localssl.dev"
      - "traefik:vision.localssl.dev"
      - "traefik:qdrant.localssl.dev"
      - "traefik:keycloak.localssl.dev"
      - "traefik:dummy-oidc.localssl.dev"
      - "traefik:dummy-webdav.localssl.dev"
    labels:
      - "traefik.enable=true"
      - "traefik.docker.network=${COMPOSE_NETWORK_NAME:-photoprism}"
      - "traefik.http.services.photoprism.loadbalancer.server.port=2342"
      - "traefik.http.services.photoprism.loadbalancer.server.scheme=http"
      - "traefik.http.routers.photoprism.entrypoints=websecure"
      - "traefik.http.routers.photoprism.rule=Host(`localssl.dev`) || HostRegexp(`^.+\\.localssl\\.dev`)"
      - "traefik.http.routers.photoprism.priority=2"
      - "traefik.http.routers.photoprism.tls.domains[0].main=localssl.dev"
      - "traefik.http.routers.photoprism.tls.domains[0].sans=*.localssl.dev"
      - "traefik.http.routers.photoprism.tls=true"
    ## Override variables with optional env file, see https://docs.docker.com/reference/compose-file/services/#required
    env_file:
      - path: ".telemetry"
        required: false
      - path: ".env"
        required: false
    ## Configure development environment
    environment:
      ## Run as a non-root user after initialization (supported: 0, 33, 50-99, 500-600, and 900-1200):
      PHOTOPRISM_UID: ${UID:-1000}                         # user id, should match your host user id
      PHOTOPRISM_GID: ${GID:-1000}                         # group id
      ## Access Management:
      PHOTOPRISM_ADMIN_USER: "admin"                       # admin login username
      PHOTOPRISM_ADMIN_PASSWORD: "photoprism"              # initial admin password (8-72 characters)
      PHOTOPRISM_AUTH_MODE: "password"                     # authentication mode (public, password)
      PHOTOPRISM_REGISTER_URI: "https://keycloak.localssl.dev/admin/"
      PHOTOPRISM_PASSWORD_RESET_URI: "https://keycloak.localssl.dev/realms/master/login-actions/reset-credentials"
      PHOTOPRISM_USAGE_INFO: "true"
      PHOTOPRISM_FILES_QUOTA: "100"
      ## Customization:
      PHOTOPRISM_DEFAULT_LOCALE: "en"                      # default user interface language, e.g. "en" or "de"
      PHOTOPRISM_PLACES_LOCALE: "local"                    # location details language, e.g. "local", "en", or "de"
      ## OpenID Connect (pre-configured for local tests):
      ## see https://keycloak.localssl.dev/realms/master/.well-known/openid-configuration
      ## the seeded "photoprism-develop" client in scripts/sql/mariadb-init.sql
      ## allows callbacks for /api/v1/oidc/redirect and /i/* paths
      PHOTOPRISM_OIDC_URI: "https://keycloak.localssl.dev/realms/master"
      PHOTOPRISM_OIDC_CLIENT: "photoprism-develop"
      PHOTOPRISM_OIDC_SECRET: "9d8351a0-ca01-4556-9c37-85eb634869b9"
      PHOTOPRISM_OIDC_PROMPT: ""                            # authorization prompt: login, select_account, or consent (empty = seamless SSO)
      PHOTOPRISM_OIDC_PROVIDER: "Keycloak"
      PHOTOPRISM_OIDC_REGISTER: "true"
      PHOTOPRISM_OIDC_WEBDAV: "true"
      PHOTOPRISM_DISABLE_OIDC: "false"
      ## LDAP Authentication (pre-configured for local tests):
      PHOTOPRISM_LDAP_URI: "ldap://dummy-ldap:389"
# ... (see full file in official GitHub repository)

PhotoPrism System Requirements & Self-Hosting Guide

Deploy PhotoPrism (4 GB+ RAM) →

Recommended VPS

4 GB+ RAM

2 – 4 vCPU · $6 – $12/mo VPS

Deployment Method

Intermediate

Docker / Docker Compose (Recommended)

Commercial Use (AGPL-3.0)

Yes for internal team self-hosting; modified SaaS redistribution requires sharing changes.

Maintenance Status

Active

Last commit: 2026-11-28

Frequently Asked Questions about PhotoPrism

Is PhotoPrism free to self-host for commercial use?

PhotoPrism is released under the AGPL-3.0 license. Yes for internal team self-hosting; modified SaaS redistribution requires sharing changes. It has 40,487 GitHub stars and was last updated on 2026-11-28.

What VPS specifications do I need to self-host PhotoPrism?

Based on its Go/Docker runtime and Photo Galleries workload, we recommend at least 4 GB+ RAM and 2 – 4 vCPU (typically $6 – $12/mo VPS).

Does PhotoPrism support Docker deployment?

Yes — PhotoPrism supports Docker / Docker Compose (Recommended), making it intermediate to spin up on any Linux VPS.

More Open-Source Photo Galleries

View all →
★ 120k Docker

Photo and video backup solution directly from your mobile phone (alternative to Google Photos). , Source Code).

Replaces: Google Photos Imgur
AGPL-3.0 Docker
Details →
★ 30.6k Docker

End-to-end encrypted photo-sharing platform (alternative to Google Photos, Apple Photos). ).

Replaces: Google Photos
AGPL-3.0 Docker/Nodejs/Go
Details →
★ 10.5k Docker

Smart imaging service and enables on-demand cropping, resizing, applying filters and optimizing images. .

MIT Python/Docker
Details →
★ 8.2k Docker

Photo management service with a slight focus on cool graphs (alternative to Google Photos). ).

Replaces: Google Photos
MIT Python/Docker
Details →
★ 6.6k Docker

Simple and user-friendly photo gallery for personal servers. It is made for photographers and aims to provide an easy and fast way to navigate directories, with thousands of high resolution photos. , Source Code.

GPL-3.0 Go/Docker
Details →
★ 4.3k Docker

Grid and album based photo-management-system. .

Replaces: Google Photos Imgur
MIT PHP/Docker
Details →