(root) 不允许附加属性环境 -- Docker compose

发布于 2025-01-10 23:14:09 字数 2619 浏览 0 评论 0原文

我正在部署光棱镜,但由于此错误而无法执行此操作。我使用的是 Windows 机器,其中通过 Ubuntu WSL2 终端使用 docker。我尝试了从语法到卷映射等一切。我的头很痛,而且很紧张。我真的必须部署这个,因为我的 Google Photos 存储已经完成。

version: '3.5'

#This will change the home directory "~" to "/root" in your configuration.

services:
 photoprism:
 # Use photoprism/photoprism:preview instead for testing preview builds:
  image: photoprism/photoprism:latest
  container_name: photoprism
 #Only enable automatic restarts once your installation is properly
 #  configured as it otherwise may get stuck in a restart loop:
 # https://docs.photoprism.org/getting-started/faq/#why-is-photoprism-getting-stuck-in-a-restart-loop
  restart: unless-stopped
  security_opt:
   - seccomp:unconfined
   - apparmor:unconfined
  ports:
   - 2342:2342 # [local port]:[container port]
environment:
 PHOTOPRISM_ADMIN_PASSWORD: "1234"
 PHOTOPRISM_ORIGINALS_LIMIT: 1000
 PHOTOPRISM_HTTP_COMPRESSION: "gzip"
 PHOTOPRISM_DEBUG: "false"
 PHOTOPRISM_PUBLIC: "false"
 PHOTOPRISM_READONLY: "false"
 PHOTOPRISM_EXPERIMENTAL: "false"
 PHOTOPRISM_DISABLE_WEBDAV: "false"
 PHOTOPRISM_DISABLE_SETTINGS: "false"
 PHOTOPRISM_DISABLE_TENSORFLOW: "false"
 PHOTOPRISM_DARKTABLE_PRESETS: "false"
 PHOTOPRISM_DETECT_NSFW: "true"
 PHOTOPRISM_UPLOAD_NSFW: "true"
 PHOTOPRISM_DATABASE_DRIVER: "mysql"
 PHOTOPRISM_DATABASE_SERVER: "mariadb:3306"
 PHOTOPRISM_DATABASE_NAME: "photoprism"
 PHOTOPRISM_DATABASE_USER: "photoprism"
 PHOTOPRISM_DATABASE_PASSWORD: "1234"
 PHOTOPRISM_SITE_URL: "http://localhost:2342/"
 PHOTOPRISM_SITE_TITLE: "PhotoPrism"
 PHOTOPRISM_SITE_CAPTION: "Browse Your Life"
 PHOTOPRISM_SITE_DESCRIPTION:
 PHOTOPRISM_SITE_AUTHOR:
# You may optionally set a user / group id using environment variables if your Docker version or NAS does not
# support this natively (see next example):
# UID: 1000
# GID: 1000
# UMASK: 0000
# Uncomment and edit the following line to set a specific user / group id (native):
# user:"1000:1000"
  volumes:  # Your photo and video files ([local path]:[container path]):
   - "/mnt/c/Users/AmolakJoshi/Pictures:/photoprism/originals"
   - "./storage:/photoprism/storage"

  mariadb:
   image: mariadb:10.5
   container_name: mariadb
   restart: unless-stopped
   security_opt:
     - seccomp:unconfined
     - apparmor:unconfined
   command: mysqld --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4
   volumes: # Don't remove permanent storage for index database files!
     - "./database:/var/lib/mysql"

   environment:
    MYSQL_ROOT_PASSWORD: 1234
    MYSQL_DATABASE: photoprism
    MYSQL_USER: photoprism
    MYSOL_PASSWORD: 1234

I am deploying photoprism but not able to do it due to this error. I am using Windows machine in which I am using docker through Ubuntu WSL2 terminal. I tried evrything from Syntax to volume mapping and everything. My head is paining rn and tensed by this. I really have to deploy this because my Google Photos storage is finished.

version: '3.5'

#This will change the home directory "~" to "/root" in your configuration.

services:
 photoprism:
 # Use photoprism/photoprism:preview instead for testing preview builds:
  image: photoprism/photoprism:latest
  container_name: photoprism
 #Only enable automatic restarts once your installation is properly
 #  configured as it otherwise may get stuck in a restart loop:
 # https://docs.photoprism.org/getting-started/faq/#why-is-photoprism-getting-stuck-in-a-restart-loop
  restart: unless-stopped
  security_opt:
   - seccomp:unconfined
   - apparmor:unconfined
  ports:
   - 2342:2342 # [local port]:[container port]
environment:
 PHOTOPRISM_ADMIN_PASSWORD: "1234"
 PHOTOPRISM_ORIGINALS_LIMIT: 1000
 PHOTOPRISM_HTTP_COMPRESSION: "gzip"
 PHOTOPRISM_DEBUG: "false"
 PHOTOPRISM_PUBLIC: "false"
 PHOTOPRISM_READONLY: "false"
 PHOTOPRISM_EXPERIMENTAL: "false"
 PHOTOPRISM_DISABLE_WEBDAV: "false"
 PHOTOPRISM_DISABLE_SETTINGS: "false"
 PHOTOPRISM_DISABLE_TENSORFLOW: "false"
 PHOTOPRISM_DARKTABLE_PRESETS: "false"
 PHOTOPRISM_DETECT_NSFW: "true"
 PHOTOPRISM_UPLOAD_NSFW: "true"
 PHOTOPRISM_DATABASE_DRIVER: "mysql"
 PHOTOPRISM_DATABASE_SERVER: "mariadb:3306"
 PHOTOPRISM_DATABASE_NAME: "photoprism"
 PHOTOPRISM_DATABASE_USER: "photoprism"
 PHOTOPRISM_DATABASE_PASSWORD: "1234"
 PHOTOPRISM_SITE_URL: "http://localhost:2342/"
 PHOTOPRISM_SITE_TITLE: "PhotoPrism"
 PHOTOPRISM_SITE_CAPTION: "Browse Your Life"
 PHOTOPRISM_SITE_DESCRIPTION:
 PHOTOPRISM_SITE_AUTHOR:
# You may optionally set a user / group id using environment variables if your Docker version or NAS does not
# support this natively (see next example):
# UID: 1000
# GID: 1000
# UMASK: 0000
# Uncomment and edit the following line to set a specific user / group id (native):
# user:"1000:1000"
  volumes:  # Your photo and video files ([local path]:[container path]):
   - "/mnt/c/Users/AmolakJoshi/Pictures:/photoprism/originals"
   - "./storage:/photoprism/storage"

  mariadb:
   image: mariadb:10.5
   container_name: mariadb
   restart: unless-stopped
   security_opt:
     - seccomp:unconfined
     - apparmor:unconfined
   command: mysqld --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4
   volumes: # Don't remove permanent storage for index database files!
     - "./database:/var/lib/mysql"

   environment:
    MYSQL_ROOT_PASSWORD: 1234
    MYSQL_DATABASE: photoprism
    MYSQL_USER: photoprism
    MYSOL_PASSWORD: 1234

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文