2020-01-19 21:30:44 +01:00
|
|
|
version: '3.3'
|
|
|
|
|
|
|
|
# Example docker-compose config file for production use
|
|
|
|
# Container image on Docker Hub: https://hub.docker.com/r/photoprism/photoprism/
|
|
|
|
# To keep photoprism running, add "restart: always"
|
|
|
|
#
|
|
|
|
# Usage: docker-compose up
|
|
|
|
|
|
|
|
services:
|
|
|
|
photoprism:
|
2020-01-19 23:28:59 +01:00
|
|
|
image: photoprism/photoprism-arm64:latest
|
2020-01-19 21:30:44 +01:00
|
|
|
security_opt:
|
|
|
|
- seccomp:unconfined
|
|
|
|
ports:
|
|
|
|
- 2342:2342 # [local port]:[container port]
|
2020-04-24 20:28:16 +02:00
|
|
|
healthcheck: # Optional
|
|
|
|
test: "photoprism status"
|
|
|
|
interval: 60s
|
|
|
|
timeout: 15s
|
|
|
|
retries: 5
|
2020-01-19 21:30:44 +01:00
|
|
|
environment: # Run "photoprism help" and "photoprism config" too see all config options and current values
|
2020-05-31 13:21:12 +02:00
|
|
|
PHOTOPRISM_DEBUG: "false" # Run in debug mode (shows additional log messages)
|
|
|
|
PHOTOPRISM_PUBLIC: "false" # No authentication required (disables password protection)
|
|
|
|
PHOTOPRISM_READONLY: "false" # Don't modify originals directory (reduced functionality)
|
|
|
|
PHOTOPRISM_UPLOAD_NSFW: "true" # Allow uploads that MAY be offensive
|
|
|
|
PHOTOPRISM_DETECT_NSFW: "false" # Flag photos as private that MAY be offensive
|
|
|
|
PHOTOPRISM_EXPERIMENTAL: "false" # Enable experimental features
|
|
|
|
PHOTOPRISM_SITE_URL: "http://localhost:2342/" # Canonical / public site URL
|
2020-05-31 02:09:52 +02:00
|
|
|
PHOTOPRISM_SITE_TITLE: "PhotoPrism"
|
2020-06-25 18:39:48 +02:00
|
|
|
PHOTOPRISM_SITE_CAPTION: "Browse Your Life"
|
2020-06-26 19:08:56 +02:00
|
|
|
PHOTOPRISM_SITE_DESCRIPTION: ""
|
|
|
|
PHOTOPRISM_SITE_AUTHOR: ""
|
2020-04-14 18:08:34 +02:00
|
|
|
PHOTOPRISM_HTTP_HOST: "0.0.0.0"
|
|
|
|
PHOTOPRISM_HTTP_PORT: 2342
|
2020-05-31 13:21:12 +02:00
|
|
|
PHOTOPRISM_SETTINGS_HIDDEN: "false" # Users can not view or change settings
|
2020-06-29 21:14:34 +02:00
|
|
|
PHOTOPRISM_ADMIN_PASSWORD: "photoprism" # Initial admin password (can be changed in settings)
|
2020-05-31 13:21:12 +02:00
|
|
|
PHOTOPRISM_DATABASE_DRIVER: "sqlite" # Change to "mysql" for external MySQL or MariaDB
|
|
|
|
# PHOTOPRISM_DATABASE_DRIVER: "mysql" # Using MariaDB or MySQL instead of SQLite is optional
|
2020-06-05 14:03:14 +02:00
|
|
|
# PHOTOPRISM_DATABASE_DSN: "photoprism:photoprism@tcp(photoprism-db:3306)/photoprism?charset=utf8mb4,utf8&parseTime=true"
|
2020-05-31 13:21:12 +02:00
|
|
|
# PHOTOPRISM_SIDECAR_JSON: "true" # Read metadata from JSON sidecar files created by exiftool
|
|
|
|
# PHOTOPRISM_SIDECAR_YAML: "true" # Backup photo metadata to YAML sidecar files
|
|
|
|
PHOTOPRISM_THUMB_FILTER: "lanczos" # Resample filter, best to worst: blackman, lanczos, cubic, linear
|
|
|
|
PHOTOPRISM_THUMB_UNCACHED: "false" # On-demand rendering of default thumbnails (high memory and cpu usage)
|
|
|
|
PHOTOPRISM_THUMB_SIZE: 2048 # Default thumbnail size limit (default 2048, min 720, max 3840)
|
|
|
|
# PHOTOPRISM_THUMB_SIZE: 3840 # For retina screens (requires more storage)
|
|
|
|
PHOTOPRISM_THUMB_LIMIT: 3840 # On-demand thumbnail size limit (default 2048, min 720, max 3840)
|
|
|
|
PHOTOPRISM_JPEG_QUALITY: 90 # Use 95 for high-quality thumbnails (requires more storage)
|
|
|
|
PHOTOPRISM_STORAGE_PATH: "/photoprism/storage" # Storage PATH for generated files like cache and index
|
2020-01-19 21:30:44 +01:00
|
|
|
volumes:
|
2020-03-23 20:29:31 +01:00
|
|
|
- "~/Pictures/Originals:/photoprism/originals" # [local path]:[container path]
|
2020-05-31 13:21:12 +02:00
|
|
|
- "~/Pictures/Import:/photoprism/import" # [local path]:[container path] (optional)
|
|
|
|
- "photoprism-storage:/photoprism/storage" # Keep cache, settings and database
|
2020-01-19 21:30:44 +01:00
|
|
|
|
|
|
|
volumes: # keep this
|
2020-05-31 02:09:52 +02:00
|
|
|
photoprism-storage:
|
2020-01-19 21:30:44 +01:00
|
|
|
driver: local
|