mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
chore(photoprism): update dockerfiles for composition
This commit is contained in:
@@ -71,16 +71,16 @@ services:
|
|||||||
PHOTOPRISM_BACKUP_DATABASE: "true" # creates regular backups based on the configured schedule
|
PHOTOPRISM_BACKUP_DATABASE: "true" # creates regular backups based on the configured schedule
|
||||||
PHOTOPRISM_BACKUP_SCHEDULE: "daily" # backup SCHEDULE in cron format (e.g. "0 12 * * *" for daily at noon) or at a random time (daily, weekly)
|
PHOTOPRISM_BACKUP_SCHEDULE: "daily" # backup SCHEDULE in cron format (e.g. "0 12 * * *" for daily at noon) or at a random time (daily, weekly)
|
||||||
PHOTOPRISM_INDEX_SCHEDULE: "" # indexing SCHEDULE in cron format (e.g. "@every 3h" for every 3 hours; "" to disable)
|
PHOTOPRISM_INDEX_SCHEDULE: "" # indexing SCHEDULE in cron format (e.g. "@every 3h" for every 3 hours; "" to disable)
|
||||||
PHOTOPRISM_AUTO_INDEX: 120 # delay before automatically indexing files in SECONDS when uploading via WebDAV (-1 to disable)
|
PHOTOPRISM_AUTO_INDEX: 300 # delay before automatically indexing files in SECONDS when uploading via WebDAV (-1 to disable)
|
||||||
PHOTOPRISM_AUTO_IMPORT: 150 # delay before automatically importing files in SECONDS when uploading via WebDAV (-1 to disable)
|
PHOTOPRISM_AUTO_IMPORT: -1 # delay before automatically importing files in SECONDS when uploading via WebDAV (-1 to disable)
|
||||||
PHOTOPRISM_DETECT_NSFW: "false" # automatically flags photos as private that MAY be offensive (requires TensorFlow)
|
PHOTOPRISM_DETECT_NSFW: "false" # automatically flags photos as private that MAY be offensive (requires TensorFlow)
|
||||||
PHOTOPRISM_UPLOAD_NSFW: "true" # allows uploads that MAY be offensive (no effect without TensorFlow)
|
PHOTOPRISM_UPLOAD_NSFW: "true" # allows uploads that MAY be offensive (no effect without TensorFlow)
|
||||||
# PHOTOPRISM_DATABASE_DRIVER: "sqlite" # SQLite is an embedded database that doesn't require a server
|
# PHOTOPRISM_DATABASE_DRIVER: "sqlite" # SQLite is an embedded database that does not require a separate database server
|
||||||
PHOTOPRISM_DATABASE_DRIVER: "mysql" # use MariaDB 10.5+ or MySQL 8+ instead of SQLite for improved performance
|
PHOTOPRISM_DATABASE_DRIVER: "mysql" # MariaDB 10.5.12+ (MySQL successor) offers significantly better performance compared to SQLite
|
||||||
PHOTOPRISM_DATABASE_SERVER: "mariadb:3306" # MariaDB or MySQL database server (hostname:port)
|
PHOTOPRISM_DATABASE_SERVER: "mariadb:3306" # MariaDB database server (hostname:port)
|
||||||
PHOTOPRISM_DATABASE_NAME: "photoprism" # MariaDB or MySQL database schema name
|
PHOTOPRISM_DATABASE_NAME: "photoprism" # MariaDB database schema name
|
||||||
PHOTOPRISM_DATABASE_USER: "photoprism" # MariaDB or MySQL database user name
|
PHOTOPRISM_DATABASE_USER: "photoprism" # MariaDB database user name
|
||||||
PHOTOPRISM_DATABASE_PASSWORD: "insecure" # MariaDB or MySQL database user password
|
PHOTOPRISM_DATABASE_PASSWORD: "insecure" # MariaDB database user password
|
||||||
PHOTOPRISM_SITE_CAPTION: "AI-Powered Photos App"
|
PHOTOPRISM_SITE_CAPTION: "AI-Powered Photos App"
|
||||||
PHOTOPRISM_SITE_DESCRIPTION: "" # meta site description
|
PHOTOPRISM_SITE_DESCRIPTION: "" # meta site description
|
||||||
PHOTOPRISM_SITE_AUTHOR: "" # meta site author
|
PHOTOPRISM_SITE_AUTHOR: "" # meta site author
|
||||||
@@ -88,7 +88,7 @@ services:
|
|||||||
# PHOTOPRISM_FFMPEG_ENCODER: "software" # H.264/AVC encoder (software, intel, nvidia, apple, raspberry, or vaapi)
|
# 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_SIZE: "1920" # video size limit in pixels (720-7680) (default: 3840)
|
||||||
# PHOTOPRISM_FFMPEG_BITRATE: "32" # video bitrate limit in Mbit/s (default: 50)
|
# 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):
|
## Run/install on first startup (options: update https gpu ffmpeg tensorflow davfs clitools clean):
|
||||||
# PHOTOPRISM_INIT: "https gpu tensorflow"
|
# PHOTOPRISM_INIT: "https gpu tensorflow"
|
||||||
## Run as a non-root user after initialization (supported: 0, 33, 50-99, 500-600, and 900-1200):
|
## Run as a non-root user after initialization (supported: 0, 33, 50-99, 500-600, and 900-1200):
|
||||||
# PHOTOPRISM_UID: 1000
|
# PHOTOPRISM_UID: 1000
|
||||||
|
|||||||
@@ -1,15 +1,19 @@
|
|||||||
---
|
---
|
||||||
services:
|
services:
|
||||||
photoprism:
|
photoprism:
|
||||||
container_name: photoprism
|
|
||||||
image: photoprism/photoprism:latest
|
image: photoprism/photoprism:latest
|
||||||
# restart: unless-stopped # configure first, then enable
|
# restart: unless-stopped # configure first, then enable
|
||||||
stop_grace_period: 10s
|
stop_grace_period: 10s
|
||||||
|
devices:
|
||||||
|
- '/dev/dri:/dev/dri'
|
||||||
|
- '/dev/kfd:/dev/kfd'
|
||||||
|
group_add:
|
||||||
|
- video
|
||||||
security_opt:
|
security_opt:
|
||||||
- seccomp:unconfined
|
- 'seccomp:unconfined'
|
||||||
- apparmor:unconfined
|
- 'apparmor:unconfined'
|
||||||
ports:
|
ports:
|
||||||
- "2342:2342"
|
- '2342:2342'
|
||||||
environment:
|
environment:
|
||||||
PHOTOPRISM_ADMIN_USER: "admin" # FIXME?
|
PHOTOPRISM_ADMIN_USER: "admin" # FIXME?
|
||||||
PHOTOPRISM_ADMIN_PASSWORD: "insecure" # FIXME
|
PHOTOPRISM_ADMIN_PASSWORD: "insecure" # FIXME
|
||||||
|
|||||||
Reference in New Issue
Block a user