Advertisement
SRoy

Working docker-compose file

May 28th, 2022
683
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3'
  2. services:
  3.     photoprismsroy:
  4.    ## Use photoprism/photoprism:preview-arm64 for testing preview builds:
  5.     image: photoprism/photoprism:arm64
  6.     depends_on:
  7.      - mariadbsroy
  8.     ## Don't enable automatic restarts until PhotoPrism has been properly configured and tested!
  9.     ## If the service gets stuck in a restart loop, this points to a memory, filesystem, network, or database issue:
  10.     ## https://docs.photoprism.app/getting-started/troubleshooting/#fatal-server-errors
  11.     restart: unless-stopped
  12.     security_opt:
  13.      - seccomp:unconfined
  14.       - apparmor:unconfined
  15.     ports:
  16.      - "2345:2345" # HTTP port (host:container)
  17.     environment:
  18.       PHOTOPRISM_ADMIN_PASSWORD: "censoredpass"          # !!! PLEASE CHANGE YOUR INITIAL "admin" PASSWORD !!!
  19.       PHOTOPRISM_HTTP_PORT: 2345
  20.       PHOTOPRISM_SITE_URL: "http://localhost:2345/"  # public server URL incl http:// or https:// and /path, :port is optional
  21.       PHOTOPRISM_ORIGINALS_LIMIT: 5000               # file size limit for originals in MB (increase for high-res video)
  22.       PHOTOPRISM_HTTP_COMPRESSION: "gzip"            # improves transfer speed and bandwidth utilization (none or gzip)
  23.       PHOTOPRISM_WORKERS: 2                          # limits the number of indexing workers to reduce system load
  24.       PHOTOPRISM_DEBUG: "false"                      # run in debug mode (shows additional log messages)
  25.       PHOTOPRISM_PUBLIC: "false"                     # no authentication required (disables password protection)
  26.       PHOTOPRISM_READONLY: "false"                   # don't modify originals directory (reduced functionality)
  27.       PHOTOPRISM_EXPERIMENTAL: "false"               # enables experimental features
  28.       PHOTOPRISM_DISABLE_CHOWN: "false"              # disables storage permission updates on startup
  29.       PHOTOPRISM_DISABLE_WEBDAV: "false"             # disables built-in WebDAV server
  30.       PHOTOPRISM_DISABLE_SETTINGS: "false"           # disables Settings in Web UI
  31.       PHOTOPRISM_DISABLE_TENSORFLOW: "false"         # disables all features depending on TensorFlow
  32.       PHOTOPRISM_DISABLE_FACES: "false"              # disables facial recognition
  33.       PHOTOPRISM_DISABLE_CLASSIFICATION: "false"     # disables image classification
  34.       PHOTOPRISM_DARKTABLE_PRESETS: "true"           # enables Darktable presets and disables concurrent RAW conversion
  35.       # PHOTOPRISM_FFMPEG_ENCODER: "h264_v4l2m2m"    # FFmpeg AVC encoder for video transcoding (default: libx264)
  36.       # PHOTOPRISM_FFMPEG_BUFFERS: "64"              # FFmpeg capture buffers (default: 32)
  37.       PHOTOPRISM_DETECT_NSFW: "true"                # flag photos as private that MAY be offensive
  38.       PHOTOPRISM_UPLOAD_NSFW: "true"                 # allow uploads that MAY be offensive
  39.       # PHOTOPRISM_DATABASE_DRIVER: "sqlite"         # SQLite is an embedded database that doesn't require a server
  40.       PHOTOPRISM_DATABASE_DRIVER: "mysql"            # use MariaDB 10.5+ or MySQL 8+ instead of SQLite for improved performance
  41.       PHOTOPRISM_DATABASE_SERVER: "mariadbsroy:3305"     # MariaDB or MySQL database server (hostname:port)
  42.       PHOTOPRISM_DATABASE_NAME: "photoprism"         # MariaDB or MySQL database schema name
  43.       PHOTOPRISM_DATABASE_USER: "photoprism"         # MariaDB or MySQL database user name
  44.       PHOTOPRISM_DATABASE_PASSWORD: "censoredpass"       # MariaDB or MySQL database user password
  45.       PHOTOPRISM_SITE_TITLE: "PhotoPrism"
  46.       PHOTOPRISM_SITE_CAPTION: "AI-Powered Photos App"
  47.       PHOTOPRISM_SITE_DESCRIPTION: ""
  48.       PHOTOPRISM_SITE_AUTHOR: "Roy"
  49.       ## Run/install on first startup (options: update, gpu, tensorflow, davfs, clean):
  50.       # PHOTOPRISM_INIT: "update clean"
  51.       ## Run as a specific user, group, or with a custom umask (does not work together with "user:")
  52.       # PHOTOPRISM_UID: 1000
  53.       # PHOTOPRISM_GID: 1000
  54.       # PHOTOPRISM_UMASK: 0000
  55.       HOME: "/mnt/Sandisk1TB/photoprism/sroy"
  56.     ## Start as a non-root user (see https://docs.docker.com/engine/reference/run/#user)
  57.     # user: "1000:1000"
  58.     ## Share hardware devices with FFmpeg and TensorFlow (optional):
  59.     # devices:
  60.     #  - "/dev/video11:/dev/video11" # Video4Linux (h264_v4l2m2m)
  61.     working_dir: "/mnt/Sandisk1TB/photoprism/sroy"
  62.     ## Storage Folders: "~" is a shortcut for your home directory, "." for the current directory
  63.     volumes:
  64.      # "/host/folder:/photoprism/folder"                # example
  65.       - "/mnt/Sandisk1TB/photoprism/sroy/Pictures:/photoprism/originals"               # original media files (photos and videos)
  66.       # - "/example/family:/photoprism/originals/family" # *additional* media folders can be mounted like this
  67.       - "/mnt/Sandisk1TB/photoprism/sroy/Import:/photoprism/import"                  # *optional* base folder from which files can be imported to originals
  68.       - "/mnt/Sandisk1TB/photoprism/sroy/storage:/photoprism/storage"                  # *writable* storage folder for cache, database, and sidecar files (never remove)
  69.  
  70.     ## Database Server (recommended)
  71.     ## see https://docs.photoprism.app/getting-started/faq/#should-i-use-sqlite-mariadb-or-mysql
  72.   mariadbsroy:
  73.    ## If MariaDB gets stuck in a restart loop, this points to a memory or filesystem issue:
  74.     ## https://docs.photoprism.app/getting-started/troubleshooting/#fatal-server-errors
  75.     restart: unless-stopped
  76.     image: arm64v8/mariadb:10.6 # this mariadb image runs on ARM64-based devices only
  77.     security_opt:
  78.      - seccomp:unconfined
  79.       - apparmor:unconfined
  80.     ports:
  81.      - "3305:3305"
  82.     command: mysqld --innodb-buffer-pool-size=128M --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=512 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=120 --port 3305
  83.     ## Never store database files on an unreliable device such as a USB flash drive, an SD card, or a shared network folder:
  84.     volumes:
  85.      - "/mnt/Sandisk1TB/photoprism/sroy/database:/var/lib/mysql" # important, don't remove
  86.     environment:
  87.       MYSQL_ROOT_PASSWORD: censoredpass
  88.       MYSQL_DATABASE: photoprism
  89.       MYSQL_USER: photoprism
  90.       MYSQL_PASSWORD: censoredpass
  91.      
  92.      
  93.   photoprismcroy:
  94.    ## Use photoprism/photoprism:preview-arm64 for testing preview builds:
  95.     image: photoprism/photoprism:arm64
  96.     depends_on:
  97.      - mariadbcroy
  98.     ## Don't enable automatic restarts until PhotoPrism has been properly configured and tested!
  99.     ## If the service gets stuck in a restart loop, this points to a memory, filesystem, network, or database issue:
  100.     ## https://docs.photoprism.app/getting-started/troubleshooting/#fatal-server-errors
  101.     restart: unless-stopped
  102.     security_opt:
  103.      - seccomp:unconfined
  104.       - apparmor:unconfined
  105.     ports:
  106.      - "2346:2346" # HTTP port (host:container)
  107.     environment:
  108.       PHOTOPRISM_ADMIN_PASSWORD: "censoredpass"          # !!! PLEASE CHANGE YOUR INITIAL "admin" PASSWORD !!!
  109.       PHOTOPRISM_HTTP_PORT: 2346
  110.       PHOTOPRISM_SITE_URL: "http://localhost:2346/"  # public server URL incl http:// or https:// and /path, :port is optional
  111.       PHOTOPRISM_ORIGINALS_LIMIT: 5000               # file size limit for originals in MB (increase for high-res video)
  112.       PHOTOPRISM_HTTP_COMPRESSION: "gzip"            # improves transfer speed and bandwidth utilization (none or gzip)
  113.       PHOTOPRISM_WORKERS: 2                          # limits the number of indexing workers to reduce system load
  114.       PHOTOPRISM_DEBUG: "false"                      # run in debug mode (shows additional log messages)
  115.       PHOTOPRISM_PUBLIC: "false"                     # no authentication required (disables password protection)
  116.       PHOTOPRISM_READONLY: "false"                   # don't modify originals directory (reduced functionality)
  117.       PHOTOPRISM_EXPERIMENTAL: "false"               # enables experimental features
  118.       PHOTOPRISM_DISABLE_CHOWN: "false"              # disables storage permission updates on startup
  119.       PHOTOPRISM_DISABLE_WEBDAV: "false"             # disables built-in WebDAV server
  120.       PHOTOPRISM_DISABLE_SETTINGS: "false"           # disables Settings in Web UI
  121.       PHOTOPRISM_DISABLE_TENSORFLOW: "false"         # disables all features depending on TensorFlow
  122.       PHOTOPRISM_DISABLE_FACES: "false"              # disables facial recognition
  123.       PHOTOPRISM_DISABLE_CLASSIFICATION: "false"     # disables image classification
  124.       PHOTOPRISM_DARKTABLE_PRESETS: "true"           # enables Darktable presets and disables concurrent RAW conversion
  125.       # PHOTOPRISM_FFMPEG_ENCODER: "h264_v4l2m2m"    # FFmpeg AVC encoder for video transcoding (default: libx264)
  126.       # PHOTOPRISM_FFMPEG_BUFFERS: "64"              # FFmpeg capture buffers (default: 32)
  127.       PHOTOPRISM_DETECT_NSFW: "true"                # flag photos as private that MAY be offensive
  128.       PHOTOPRISM_UPLOAD_NSFW: "true"                 # allow uploads that MAY be offensive
  129.       # PHOTOPRISM_DATABASE_DRIVER: "sqlite"         # SQLite is an embedded database that doesn't require a server
  130.       PHOTOPRISM_DATABASE_DRIVER: "mysql"            # use MariaDB 10.5+ or MySQL 8+ instead of SQLite for improved performance
  131.       PHOTOPRISM_DATABASE_SERVER: "mariadbcroy:3306"     # MariaDB or MySQL database server (hostname:port)
  132.       PHOTOPRISM_DATABASE_NAME: "photoprism"         # MariaDB or MySQL database schema name
  133.       PHOTOPRISM_DATABASE_USER: "photoprism"         # MariaDB or MySQL database user name
  134.       PHOTOPRISM_DATABASE_PASSWORD: "censoredpass"       # MariaDB or MySQL database user password
  135.       PHOTOPRISM_SITE_TITLE: "PhotoPrism"
  136.       PHOTOPRISM_SITE_CAPTION: "AI-Powered Photos App"
  137.       PHOTOPRISM_SITE_DESCRIPTION: ""
  138.       PHOTOPRISM_SITE_AUTHOR: "Roy"
  139.       ## Run/install on first startup (options: update, gpu, tensorflow, davfs, clean):
  140.       # PHOTOPRISM_INIT: "update clean"
  141.       ## Run as a specific user, group, or with a custom umask (does not work together with "user:")
  142.       # PHOTOPRISM_UID: 1000
  143.       # PHOTOPRISM_GID: 1000
  144.       # PHOTOPRISM_UMASK: 0000
  145.       HOME: "/mnt/Sandisk1TB/photoprism/croy"
  146.     ## Start as a non-root user (see https://docs.docker.com/engine/reference/run/#user)
  147.     # user: "1000:1000"
  148.     ## Share hardware devices with FFmpeg and TensorFlow (optional):
  149.     # devices:
  150.     #  - "/dev/video11:/dev/video11" # Video4Linux (h264_v4l2m2m)
  151.     working_dir: "/mnt/Sandisk1TB/photoprism/croy"
  152.     ## Storage Folders: "~" is a shortcut for your home directory, "." for the current directory
  153.     volumes:
  154.      # "/host/folder:/photoprism/folder"                # example
  155.       - "/mnt/Sandisk1TB/photoprism/croy/Pictures:/photoprism/originals"               # original media files (photos and videos)
  156.       # - "/example/family:/photoprism/originals/family" # *additional* media folders can be mounted like this
  157.       - "/mnt/Sandisk1TB/photoprism/croy/Import:/photoprism/import"                  # *optional* base folder from which files can be imported to originals
  158.       - "/mnt/Sandisk1TB/photoprism/croy/storage:/photoprism/storage"                  # *writable* storage folder for cache, database, and sidecar files (never remove)
  159.  
  160.     ## Database Server (recommended)
  161.     ## see https://docs.photoprism.app/getting-started/faq/#should-i-use-sqlite-mariadb-or-mysql
  162.   mariadbcroy:
  163.    ## If MariaDB gets stuck in a restart loop, this points to a memory or filesystem issue:
  164.     ## https://docs.photoprism.app/getting-started/troubleshooting/#fatal-server-errors
  165.     restart: unless-stopped
  166.     image: arm64v8/mariadb:10.6 # this mariadb image runs on ARM64-based devices only
  167.     security_opt:
  168.      - seccomp:unconfined
  169.       - apparmor:unconfined
  170.     ports:
  171.      - "3306:3306"
  172.     command: mysqld --innodb-buffer-pool-size=128M --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=512 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=120 --port 3306
  173.     ## Never store database files on an unreliable device such as a USB flash drive, an SD card, or a shared network folder:
  174.     volumes:
  175.      - "/mnt/Sandisk1TB/photoprism/croy/database:/var/lib/mysql" # important, don't remove
  176.     environment:
  177.       MYSQL_ROOT_PASSWORD: censoredpass
  178.       MYSQL_DATABASE: photoprism
  179.       MYSQL_USER: photoprism
  180.       MYSQL_PASSWORD: censoredpass
  181.    
  182.   photoprismdroy:
  183.    ## Use photoprism/photoprism:preview-arm64 for testing preview builds:
  184.     image: photoprism/photoprism:arm64
  185.     depends_on:
  186.      - mariadbdroy
  187.     ## Don't enable automatic restarts until PhotoPrism has been properly configured and tested!
  188.     ## If the service gets stuck in a restart loop, this points to a memory, filesystem, network, or database issue:
  189.     ## https://docs.photoprism.app/getting-started/troubleshooting/#fatal-server-errors
  190.     restart: unless-stopped
  191.     security_opt:
  192.      - seccomp:unconfined
  193.       - apparmor:unconfined
  194.     ports:
  195.      - "2347:2347" # HTTP port (host:container)
  196.     environment:
  197.       PHOTOPRISM_ADMIN_PASSWORD: "censoredpass"          # !!! PLEASE CHANGE YOUR INITIAL "admin" PASSWORD !!!
  198.       PHOTOPRISM_HTTP_PORT: 2347
  199.       PHOTOPRISM_SITE_URL: "http://localhost:2347/"  # public server URL incl http:// or https:// and /path, :port is optional
  200.       PHOTOPRISM_ORIGINALS_LIMIT: 5000               # file size limit for originals in MB (increase for high-res video)
  201.       PHOTOPRISM_HTTP_COMPRESSION: "gzip"            # improves transfer speed and bandwidth utilization (none or gzip)
  202.       PHOTOPRISM_WORKERS: 2                          # limits the number of indexing workers to reduce system load
  203.       PHOTOPRISM_DEBUG: "false"                      # run in debug mode (shows additional log messages)
  204.       PHOTOPRISM_PUBLIC: "false"                     # no authentication required (disables password protection)
  205.       PHOTOPRISM_READONLY: "false"                   # don't modify originals directory (reduced functionality)
  206.       PHOTOPRISM_EXPERIMENTAL: "false"               # enables experimental features
  207.       PHOTOPRISM_DISABLE_CHOWN: "false"              # disables storage permission updates on startup
  208.       PHOTOPRISM_DISABLE_WEBDAV: "false"             # disables built-in WebDAV server
  209.       PHOTOPRISM_DISABLE_SETTINGS: "false"           # disables Settings in Web UI
  210.       PHOTOPRISM_DISABLE_TENSORFLOW: "false"         # disables all features depending on TensorFlow
  211.       PHOTOPRISM_DISABLE_FACES: "false"              # disables facial recognition
  212.       PHOTOPRISM_DISABLE_CLASSIFICATION: "false"     # disables image classification
  213.       PHOTOPRISM_DARKTABLE_PRESETS: "true"           # enables Darktable presets and disables concurrent RAW conversion
  214.       # PHOTOPRISM_FFMPEG_ENCODER: "h264_v4l2m2m"    # FFmpeg AVC encoder for video transcoding (default: libx264)
  215.       # PHOTOPRISM_FFMPEG_BUFFERS: "64"              # FFmpeg capture buffers (default: 32)
  216.       PHOTOPRISM_DETECT_NSFW: "true"                # flag photos as private that MAY be offensive
  217.       PHOTOPRISM_UPLOAD_NSFW: "true"                 # allow uploads that MAY be offensive
  218.       # PHOTOPRISM_DATABASE_DRIVER: "sqlite"         # SQLite is an embedded database that doesn't require a server
  219.       PHOTOPRISM_DATABASE_DRIVER: "mysql"            # use MariaDB 10.5+ or MySQL 8+ instead of SQLite for improved performance
  220.       PHOTOPRISM_DATABASE_SERVER: "mariadbdroy:3307"     # MariaDB or MySQL database server (hostname:port)
  221.       PHOTOPRISM_DATABASE_NAME: "photoprism"         # MariaDB or MySQL database schema name
  222.       PHOTOPRISM_DATABASE_USER: "photoprism"         # MariaDB or MySQL database user name
  223.       PHOTOPRISM_DATABASE_PASSWORD: "censoredpass"       # MariaDB or MySQL database user password
  224.       PHOTOPRISM_SITE_TITLE: "PhotoPrism"
  225.       PHOTOPRISM_SITE_CAPTION: "AI-Powered Photos App"
  226.       PHOTOPRISM_SITE_DESCRIPTION: ""
  227.       PHOTOPRISM_SITE_AUTHOR: "Roy"
  228.       ## Run/install on first startup (options: update, gpu, tensorflow, davfs, clean):
  229.       # PHOTOPRISM_INIT: "update clean"
  230.       ## Run as a specific user, group, or with a custom umask (does not work together with "user:")
  231.       # PHOTOPRISM_UID: 1000
  232.       # PHOTOPRISM_GID: 1000
  233.       # PHOTOPRISM_UMASK: 0000
  234.       HOME: "/mnt/Sandisk1TB/photoprism/droy"
  235.     ## Start as a non-root user (see https://docs.docker.com/engine/reference/run/#user)
  236.     # user: "1000:1000"
  237.     ## Share hardware devices with FFmpeg and TensorFlow (optional):
  238.     # devices:
  239.     #  - "/dev/video11:/dev/video11" # Video4Linux (h264_v4l2m2m)
  240.     working_dir: "/mnt/Sandisk1TB/photoprism/droy"
  241.     ## Storage Folders: "~" is a shortcut for your home directory, "." for the current directory
  242.     volumes:
  243.      # "/host/folder:/photoprism/folder"                # example
  244.       - "/mnt/Sandisk1TB/photoprism/droy/Pictures:/photoprism/originals"               # original media files (photos and videos)
  245.       # - "/example/family:/photoprism/originals/family" # *additional* media folders can be mounted like this
  246.       - "/mnt/Sandisk1TB/photoprism/droy/Import:/photoprism/import"                  # *optional* base folder from which files can be imported to originals
  247.       - "/mnt/Sandisk1TB/photoprism/droy/storage:/photoprism/storage"                  # *writable* storage folder for cache, database, and sidecar files (never remove)
  248.  
  249.     ## Database Server (recommended)
  250.      ## see https://docs.photoprism.app/getting-started/faq/#should-i-use-sqlite-mariadb-or-mysql
  251.   mariadbdroy:
  252.    ## If MariaDB gets stuck in a restart loop, this points to a memory or filesystem issue:
  253.     ## https://docs.photoprism.app/getting-started/troubleshooting/#fatal-server-errors
  254.     restart: unless-stopped
  255.     image: arm64v8/mariadb:10.6 # this mariadb image runs on ARM64-based devices only
  256.     security_opt:
  257.      - seccomp:unconfined
  258.       - apparmor:unconfined
  259.     ports:
  260.      - "3307:3307"
  261.     command: mysqld --innodb-buffer-pool-size=128M --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=512 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=120 --port 3307
  262.     ## Never store database files on an unreliable device such as a USB flash drive, an SD card, or a shared network folder:
  263.     volumes:
  264.      - "/mnt/Sandisk1TB/photoprism/droy/database:/var/lib/mysql" # important, don't remove
  265.     environment:
  266.       MYSQL_ROOT_PASSWORD: censoredpass
  267.       MYSQL_DATABASE: photoprism
  268.       MYSQL_USER: photoprism
  269.       MYSQL_PASSWORD: censoredpass
Advertisement
RAW Paste Data Copied
Advertisement