Photo and video backup solution directly from your mobile phone (alternative to Google Photos). , Source Code).
PhotoPrism
AGPL-3.0 Docker Ready ★ 40,487 Stars Active · 2026-11-28Personal 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
Commercial SaaS Replaced
Head-to-Head Comparisons
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.
Deploy PhotoPrism on your own VPS
Run PhotoPrism privately with full data control. Recommended starting footprint: 4 GB+ RAM ($6 – $12/mo VPS).
Best Value · 1-Click Docker
1 vCPU · 4 GB RAM · 50 GB NVMe
Includes built-in Docker & Coolify templates — ideal for beginners.
Lowest Cost / Performance
2 vCPU · 4 GB RAM · 40 GB NVMe
Unbeatable EU/US cloud pricing for high-traffic self-hosted stacks.
$200 Free Credit
1 vCPU · 1 GB RAM · 25 GB SSD
Clean developer UX with 1-click Marketplace Docker droplets.
More Open-Source Photo Galleries
View all →End-to-end encrypted photo-sharing platform (alternative to Google Photos, Apple Photos). ).
Smart imaging service and enables on-demand cropping, resizing, applying filters and optimizing images. .
Photo management service with a slight focus on cool graphs (alternative to Google Photos). ).
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.