8609ab805f
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
62 lines
2.6 KiB
YAML
62 lines
2.6 KiB
YAML
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:
|
|
image: photoprism/photoprism-arm64:latest
|
|
security_opt:
|
|
- seccomp:unconfined
|
|
ports:
|
|
- 2342:2342 # [local port]:[container port]
|
|
# - 4000:4000 # Internal database (MySQL compatible)
|
|
healthcheck: # Optional
|
|
test: "photoprism status"
|
|
interval: 60s
|
|
timeout: 15s
|
|
retries: 5
|
|
environment: # Run "photoprism help" and "photoprism config" too see all config options and current values
|
|
PHOTOPRISM_URL: "https://demo.photoprism.org/"
|
|
PHOTOPRISM_TITLE: "PhotoPrism"
|
|
PHOTOPRISM_SUBTITLE: "Browse your life"
|
|
PHOTOPRISM_DESCRIPTION: "Personal Photo Management powered by Go and Google TensorFlow. Free and open-source."
|
|
PHOTOPRISM_AUTHOR: "Anonymous"
|
|
PHOTOPRISM_TWITTER: "@browseyourlife"
|
|
PHOTOPRISM_UPLOAD_NSFW: "true"
|
|
PHOTOPRISM_DETECT_NSFW: "false"
|
|
PHOTOPRISM_EXPERIMENTAL: "false"
|
|
PHOTOPRISM_DEBUG: "false"
|
|
PHOTOPRISM_READONLY: "false"
|
|
PHOTOPRISM_PUBLIC: "false"
|
|
PHOTOPRISM_DISABLE_SETTINGS: "false"
|
|
PHOTOPRISM_HTTP_HOST: "0.0.0.0"
|
|
PHOTOPRISM_HTTP_PORT: 2342
|
|
PHOTOPRISM_SQL_HOST: "0.0.0.0"
|
|
PHOTOPRISM_SQL_PORT: 4000 # Port for internal TiDB SQL server (driver "internal")
|
|
PHOTOPRISM_SQL_PASSWORD: "photoprism" # Plain text only (username "root")
|
|
PHOTOPRISM_ADMIN_PASSWORD: "photoprism" # Plain text or bcrypt hash (escape "$" with "$$")
|
|
PHOTOPRISM_WEBDAV_PASSWORD: "photoprism" # Plain text only (username "photoprism")
|
|
PHOTOPRISM_DATABASE_DRIVER: "internal" # Change to "mysql" for external MySQL or MariaDB
|
|
PHOTOPRISM_DATABASE_DSN: "root:photoprism@tcp(localhost:4000)/photoprism?parseTime=true"
|
|
# PHOTOPRISM_THUMB_QUALITY: 95 # High-quality thumbnails (optional)
|
|
# PHOTOPRISM_THUMB_SIZE: 3840
|
|
# PHOTOPRISM_THUMB_LIMIT: 3840
|
|
# PHOTOPRISM_THUMB_FILTER: "lanczos"
|
|
volumes:
|
|
- "~/Pictures/Originals:/photoprism/originals" # [local path]:[container path]
|
|
- "~/Pictures/Import:/photoprism/import" # [local path]:[container path] (optional)
|
|
- "photoprism-config:/photoprism/config" # keep settings
|
|
- "photoprism-cache:/photoprism/cache" # keep thumbnail cache
|
|
- "photoprism-database:/photoprism/database" # keep database files
|
|
|
|
volumes: # keep this
|
|
photoprism-config:
|
|
driver: local
|
|
photoprism-cache:
|
|
driver: local
|
|
photoprism-database:
|
|
driver: local
|