blob: 73d807c023d23cc1b8f80d19e3d1a33fe4578663 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# 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"
|