# https://docs.photoprism.app/getting-started/docker-compose/ --- - name: 'Create the photoprism network' community.docker.docker_network: name: '{{ photoprism_docker_network_name }}' state: 'present' - name: 'Install Photoprism' community.docker.docker_container: name: 'photoprism' image: 'photoprism/photoprism:latest' pull: true state: 'started' recreate: false security_opts: - 'seccomp:unconfined' - 'apparmor:unconfined' env: PHOTOPRISM_ADMIN_PASSWORD: "{{ photoprism_admin_password }}" # INITIAL PASSWORD FOR "admin" USER, MINIMUM 8 CHARACTERS PHOTOPRISM_AUTH_MODE: "password" # authentication mode (public, password) PHOTOPRISM_SITE_URL: "https://photos.kumardamani.net/" # public server URL incl http:// or https:// and /path, :port is optional PHOTOPRISM_ORIGINALS_LIMIT: "5000" # file size limit for originals in MB (increase for high-res video) PHOTOPRISM_HTTP_COMPRESSION: "gzip" # improves transfer speed and bandwidth utilization (none or gzip) PHOTOPRISM_LOG_LEVEL: "info" # log level: trace, debug, info, warning, error, fatal, or panic PHOTOPRISM_READONLY: "true" # do not modify originals directory (reduced functionality) PHOTOPRISM_EXPERIMENTAL: "false" # enables experimental features PHOTOPRISM_DISABLE_CHOWN: "true" # disables updating storage permissions via chmod and chown on startup PHOTOPRISM_DISABLE_WEBDAV: "true" # disables built-in WebDAV server PHOTOPRISM_DISABLE_SETTINGS: "false" # disables settings UI and API PHOTOPRISM_DISABLE_TENSORFLOW: "true" # disables all features depending on TensorFlow PHOTOPRISM_DISABLE_FACES: "true" # disables face detection and recognition (requires TensorFlow) PHOTOPRISM_DISABLE_CLASSIFICATION: "true" # disables image classification (requires TensorFlow) PHOTOPRISM_DISABLE_RAW: "true" # disables indexing and conversion of RAW files PHOTOPRISM_RAW_PRESETS: "false" # enables applying user presets when converting RAW files (reduces performance) PHOTOPRISM_JPEG_QUALITY: "85" # a higher value increases the quality and file size of JPEG images and thumbnails (25-100) PHOTOPRISM_DETECT_NSFW: "false" # automatically flags photos as private that MAY be offensive (requires TensorFlow) PHOTOPRISM_UPLOAD_NSFW: "false" # allows uploads that MAY be offensive (no effect without TensorFlow) PHOTOPRISM_DATABASE_DRIVER: "sqlite" # SQLite is an embedded database that doesn't require a server PHOTOPRISM_SITE_CAPTION: "Photos App" PHOTOPRISM_SITE_DESCRIPTION: "Some of our pics" # meta site description PHOTOPRISM_SITE_AUTHOR: "Kumar" # meta site author PHOTOPRISM_INIT: "gpu tensorflow" working_dir: "/photoprism" networks: - name: '{{ photoprism_docker_network_name }}' ports: - '{{ photoprism_host_port }}:2342' volumes: - '{{ photoprism_pics_root_dir }}:/photoprism/originals:ro' - '{{ photoprism_data_dir }}:/photoprism/storage' restart_policy: "unless-stopped"