added photoprism

This commit is contained in:
msnie
2024-02-27 09:04:26 +01:00
parent 09ea3fdbfb
commit 9b414e811b
2 changed files with 11 additions and 41 deletions
+2
View File
@@ -0,0 +1,2 @@
DOMAIN_NAME=knast.cc
DEFAULT_NETWORK=traefik
+9 -41
View File
@@ -28,24 +28,17 @@ version: '3.5'
services: services:
photoprism: photoprism:
## Use photoprism/photoprism:preview for testing preview builds:
image: photoprism/photoprism:latest image: photoprism/photoprism:latest
## Don't enable automatic restarts until PhotoPrism has been properly configured and tested!
## If the service gets stuck in a restart loop, this points to a memory, filesystem, network, or database issue: restart: unless-stopped
## https://docs.photoprism.app/getting-started/troubleshooting/#fatal-server-errors
# restart: unless-stopped
stop_grace_period: 10s stop_grace_period: 10s
depends_on: depends_on:
- mariadb - mariadb
security_opt: security_opt:
- seccomp:unconfined - seccomp:unconfined
- apparmor:unconfined - apparmor:unconfined
## Server port mapping in the format "Host:Container". To use a different port, change the host port on
## the left-hand side and keep the container port, e.g. "80:2342" (for HTTP) or "443:2342 (for HTTPS):
ports: ports:
- "2342:2342" - "2342:2342"
## Before you start the service, please check the following config options (and change them as needed):
## https://docs.photoprism.app/getting-started/config-options/
environment: environment:
PHOTOPRISM_ADMIN_USER: "admin" # admin login username PHOTOPRISM_ADMIN_USER: "admin" # admin login username
PHOTOPRISM_ADMIN_PASSWORD: "Lukmignuind1" # initial admin password (8-72 characters) PHOTOPRISM_ADMIN_PASSWORD: "Lukmignuind1" # initial admin password (8-72 characters)
@@ -79,40 +72,19 @@ services:
PHOTOPRISM_SITE_CAPTION: "Home is where that thing lives.." PHOTOPRISM_SITE_CAPTION: "Home is where that thing lives.."
PHOTOPRISM_SITE_DESCRIPTION: "" # meta site description PHOTOPRISM_SITE_DESCRIPTION: "" # meta site description
PHOTOPRISM_SITE_AUTHOR: "null" # meta site author PHOTOPRISM_SITE_AUTHOR: "null" # meta site author
## Video Transcoding (https://docs.photoprism.app/getting-started/advanced/transcoding/):
# PHOTOPRISM_FFMPEG_ENCODER: "software" # H.264/AVC encoder (software, intel, nvidia, apple, raspberry, or vaapi)
# PHOTOPRISM_FFMPEG_SIZE: "1920" # video size limit in pixels (720-7680) (default: 3840)
# PHOTOPRISM_FFMPEG_BITRATE: "32" # video bitrate limit in Mbit/s (default: 50)
## Run/install on first startup (options: update https gpu tensorflow davfs clitools clean):
# PHOTOPRISM_INIT: "https gpu tensorflow"
## Run as a non-root user after initialization (supported: 0, 33, 50-99, 500-600, and 900-1200):
# PHOTOPRISM_UID: 1000
# PHOTOPRISM_GID: 1000
# PHOTOPRISM_UMASK: 0000
## Start as non-root user before initialization (supported: 0, 33, 50-99, 500-600, and 900-1200):
# user: "1000:1000"
## Share hardware devices with FFmpeg and TensorFlow (optional):
# devices:
# - "/dev/dri:/dev/dri" # Intel QSV
# - "/dev/nvidia0:/dev/nvidia0" # Nvidia CUDA
# - "/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" # Video4Linux Video Encode Device (h264_v4l2m2m)
working_dir: "/photoprism" # do not change or remove working_dir: "/photoprism" # do not change or remove
## Storage Folders: "~" is a shortcut for your home directory, "." for the current directory
volumes: volumes:
- "/home/null/shares/disk1/backups/photoprism/originals:/photoprism/originals" # Original media files (DO NOT REMOVE) - "/home/null/shares/disk1/backups/photoprism/originals:/photoprism/originals" # Original media files (DO NOT REMOVE)
- "/home/null/shares/disk1/backups/photoprism/storage:/photoprism/storage" # *Writable* storage folder for cache, database, and sidecar files (DO NOT REMOVE) - "/home/null/shares/disk1/backups/photoprism/storage:/photoprism/storage" # *Writable* storage folder for cache, database, and sidecar files (DO NOT REMOVE)
labels:
## Database Server (recommended) - traefik.enable=true
## see https://docs.photoprism.app/getting-started/faq/#should-i-use-sqlite-mariadb-or-mysql - "traefik.http.routers.prism.entrypoints=websecure"
- "traefik.http.routers.prism.rule=Host(`prism.$DOMAIN_NAME`)"
- "traefik.http.routers.prism.tls.certresolver=letsencr"
- "traefik.http.services.prism.loadbalancer.server.port=2342"
mariadb: mariadb:
image: mariadb:11 image: mariadb:11
## If MariaDB gets stuck in a restart loop, this points to a memory or filesystem issue:
## https://docs.photoprism.app/getting-started/troubleshooting/#fatal-server-errors
restart: unless-stopped restart: unless-stopped
stop_grace_period: 5s stop_grace_period: 5s
security_opt: # see https://github.com/MariaDB/mariadb-docker/issues/434#issuecomment-1136151239 security_opt: # see https://github.com/MariaDB/mariadb-docker/issues/434#issuecomment-1136151239
@@ -129,10 +101,6 @@ services:
MARIADB_USER: "photoprism" MARIADB_USER: "photoprism"
MARIADB_PASSWORD: "f&xsbGyb@ZAftyBqZ4&xjCepPv%cPrCs%nDgYz4GYyNc*EBPog" MARIADB_PASSWORD: "f&xsbGyb@ZAftyBqZ4&xjCepPv%cPrCs%nDgYz4GYyNc*EBPog"
MARIADB_ROOT_PASSWORD: "pY6NuudthC%DQAdV#XUh9p8eRJs8uiq*qnijL3H&x@r6uFq9uT" MARIADB_ROOT_PASSWORD: "pY6NuudthC%DQAdV#XUh9p8eRJs8uiq*qnijL3H&x@r6uFq9uT"
## Watchtower upgrades services automatically (optional)
## see https://docs.photoprism.app/getting-started/updates/#watchtower
## activate via "COMPOSE_PROFILES=update docker compose up -d"
watchtower: watchtower:
restart: unless-stopped restart: unless-stopped
image: containrrr/watchtower image: containrrr/watchtower