This commit is contained in:
root 2022-12-05 15:40:25 +01:00
commit 985bb720c4
2 changed files with 90 additions and 0 deletions

40
.env.sample Normal file
View File

@ -0,0 +1,40 @@
WEBDRIVE_USERNAME
WEBDRIVE_PASSWORD
WEBDRIVE_URL
DAVFS2_ASK_AUTH
PHOTOPRISM_ADMIN_USER
PHOTOPRISM_ADMIN_PASSWORD
PHOTOPRISM_AUTH_MODE
PHOTOPRISM_SITE_URL
PHOTOPRISM_ORIGINALS_LIMIT
PHOTOPRISM_HTTP_COMPRESSION
PHOTOPRISM_LOG_LEVEL
PHOTOPRISM_READONLY
PHOTOPRISM_EXPERIMENTAL
PHOTOPRISM_DISABLE_CHOWN
PHOTOPRISM_DISABLE_WEBDAV
PHOTOPRISM_DISABLE_SETTINGS
PHOTOPRISM_DISABLE_TENSORFLOW
PHOTOPRISM_DISABLE_FACES
PHOTOPRISM_DISABLE_CLASSIFICATION
PHOTOPRISM_DISABLE_RAW
PHOTOPRISM_RAW_PRESETS
PHOTOPRISM_JPEG_QUALITY
PHOTOPRISM_DETECT_NSFW
PHOTOPRISM_UPLOAD_NSFW
# PHOTOPRISM_DATABASE_DRIVER
PHOTOPRISM_DATABASE_DRIVER
PHOTOPRISM_DATABASE_SERVER
PHOTOPRISM_DATABASE_NAME
PHOTOPRISM_DATABASE_USER
PHOTOPRISM_DATABASE_PASSWORD
PHOTOPRISM_SITE_CAPTION
PHOTOPRISM_SITE_DESCRIPTION
PHOTOPRISM_SITE_AUTHOR
MARIADB_AUTO_UPGRADE
MARIADB_INITDB_SKIP_TZINFO
MARIADB_DATABASE
MARIADB_USER
MARIADB_PASSWORD
MARIADB_ROOT_PASSWORD

50
docker-compose.yml Normal file
View File

@ -0,0 +1,50 @@
version: "3"
services:
webdav:
image: efrecon/webdav-client
security_opt:
- apparmor:unconfined
cap_add:
- SYS_ADMIN
env_file: .env
volumes:
- ./dav/:/mnt/webdrive:rshared
restart: unless-stopped
devices:
- "/dev/fuse:/dev/fuse"
networks:
- default
- ext
photoprism:
image: photoprism/photoprism:latest
depends_on:
- mariadb
- webdav
restart: unless-stopped
security_opt:
- seccomp:unconfined
- apparmor:unconfined
ports:
- "2342:2342" # HTTP port (host:container)
env_file: .env
working_dir: "/photoprism" # do not change or remove
volumes:
- "./dav/pic:/photoprism/originals" # Original media files (DO NOT REMOVE)
- "./storage:/photoprism/storage" # *Writable* storage folder for cache, database, and sidecar files (DO NOT REMOVE)
mariadb:
restart: unless-stopped
image: mariadb:10.9
security_opt: # see https://github.com/MariaDB/mariadb-docker/issues/434#issuecomment-1136151239
- seccomp:unconfined
- apparmor:unconfined
command: mysqld --innodb-buffer-pool-size=512M --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
volumes:
- "./database:/var/lib/mysql" # DO NOT REMOVE
env_file: .env
networks:
ext:
external:
name: my-network