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]
|
|
|
|
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_HIDE_NSFW: "false"
|
|
|
|
PHOTOPRISM_EXPERIMENTAL: "false"
|
|
|
|
PHOTOPRISM_DEBUG: "false"
|
|
|
|
PHOTOPRISM_READONLY: "false"
|
|
|
|
PHOTOPRISM_PUBLIC: "false"
|
2020-03-23 20:29:31 +01:00
|
|
|
PHOTOPRISM_ADMIN_PASSWORD: "photoprism" # Plain text or bcrypt hash (escape "$" with "$$")
|
|
|
|
PHOTOPRISM_WEBDAV_PASSWORD: "photoprism" # Plain text only (username "photoprism")
|
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]
|
|
|
|
- "~/Pictures/Import:/photoprism/import" # [local path]:[container path] (optional)
|
|
|
|
- "photoprism-cache:/photoprism/cache" # keep thumbnail cache
|
|
|
|
- "photoprism-database:/photoprism/database" # keep database files
|
2020-01-19 21:30:44 +01:00
|
|
|
|
|
|
|
volumes: # keep this
|
|
|
|
photoprism-cache:
|
|
|
|
driver: local
|
|
|
|
photoprism-database:
|
|
|
|
driver: local
|