mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-25 03:18:48 +08:00
47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
networks:
|
|
1panel-network:
|
|
external: true
|
|
|
|
services:
|
|
photoprism:
|
|
image: photoprism/photoprism:240711
|
|
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:
|
|
- /etc/1panel/envs/global.env
|
|
- /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"
|