appstore-1panel/apps/photoprism/240915/docker-compose.yml
Meng Sen 1165dcd41c 应用标准化
Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
2024-11-27 18:40:30 +08:00

47 lines
1.4 KiB
YAML

networks:
1panel-network:
external: true
services:
photoprism:
image: photoprism/photoprism:240915
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
stop_grace_period: 10s
security_opt:
- seccomp:unconfined
- apparmor:unconfined
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:2342
user: 1000:1000
working_dir: /photoprism
devices:
- /dev/dri:/dev/dri
# - /dev/nvidia0:/dev/nvidia0
# - /dev/nvidiactl:/dev/nvidiactl
# - /dev/nvidia-modeset:/dev/nvidia-modeset
# - /dev/nvidia-nvswitchctl:/dev/nvidia-nvswitchctl
# - /dev/nvidia-uvm:/dev/nvidia-uvm
# - /dev/nvidia-uvm-tools:/dev/nvidia-uvm-tools
# - /dev/video11:/dev/video11
env_file:
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
- ${APP_ENV_FILE:-/etc/1panel/envs/photoprism/photoprism.env}
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${PHOTOPRISM_ROOT_PATH}/originals:/photoprism/originals
- ${PHOTOPRISM_ROOT_PATH}/storage:/photoprism/storage
- ${PHOTOPRISM_ROOT_PATH}/family:/photoprism/originals/family
- ${PHOTOPRISM_ROOT_PATH}/import:/photoprism/import
environment:
PHOTOPRISM_UID: 0
PHOTOPRISM_GID: 0
PHOTOPRISM_UMASK: 0022
PHOTOPRISM_PASSWORD_LENGTH: 8
PHOTOPRISM_ADMIN_USERNAME: ${PHOTOPRISM_ADMIN_USER}
PHOTOPRISM_DATABASE_DRIVER: "mysql"