Setup: Update stack config and env file for Portainer #1696

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2023-07-26 17:42:32 +02:00
parent 348442d355
commit ec09145fef
2 changed files with 17 additions and 17 deletions

View file

@ -1,10 +1,10 @@
# MariaDB database server settings
MARIADB_AUTO_UPGRADE=1"
MARIADB_INITDB_SKIP_TZINFO=1"
MARIADB_DATABASE=photoprism"
MARIADB_USER=photoprism"
MARIADB_PASSWORD=insecure"
MARIADB_ROOT_PASSWORD=insecure"
MARIADB_AUTO_UPGRADE=1
MARIADB_INITDB_SKIP_TZINFO=1
MARIADB_DATABASE=photoprism
MARIADB_USER=photoprism
MARIADB_PASSWORD=insecure
MARIADB_ROOT_PASSWORD=insecure
# use MariaDB 10.5+ improved performance compared to SQLite
PHOTOPRISM_DATABASE_DRIVER=mysql
# MariaDB or MySQL database server (hostname:port)
@ -21,14 +21,14 @@ PHOTOPRISM_ADMIN_USER=admin
PHOTOPRISM_ADMIN_PASSWORD=insecure
# authentication mode (public, password)
PHOTOPRISM_AUTH_MODE=password
# server URL in the format "http(s)://domain.name(:port)/(path)"
PHOTOPRISM_SITE_URL=https://localhost:2342/
# server URL in the format http(s)://domain.name(:port)/(path)
PHOTOPRISM_SITE_URL=http://localhost:2342/
# disables HTTPS/TLS even if the site URL starts with https:// and a certificate is available
PHOTOPRISM_DISABLE_TLS=false
# defaults to a self-signed HTTPS/TLS certificate if no other certificate is available
PHOTOPRISM_DEFAULT_TLS=true
# file size limit for originals in MB (increase for high-res video)
PHOTOPRISM_ORIGINALS_LIMIT: 5000
PHOTOPRISM_ORIGINALS_LIMIT=5000
# improves transfer speed and bandwidth utilization (none or gzip)
PHOTOPRISM_HTTP_COMPRESSION=gzip
# log level: trace, debug, info, warning, error, fatal, or panic
@ -56,13 +56,13 @@ PHOTOPRISM_DISABLE_RAW=false
# enables applying user presets when converting RAW images (reduces performance)
PHOTOPRISM_RAW_PRESETS=false
# a higher value increases the quality and file size of JPEG images and thumbnails (25-100)
PHOTOPRISM_JPEG_QUALITY: 85
PHOTOPRISM_JPEG_QUALITY=85
# automatically flags photos as private that MAY be offensive (requires TensorFlow)
PHOTOPRISM_DETECT_NSFW=false
# allows uploads that MAY be offensive (no effect without TensorFlow)
PHOTOPRISM_UPLOAD_NSFW=true
# site caption, description and author (optional)
PHOTOPRISM_SITE_CAPTION=AI-Powered Photos App"
PHOTOPRISM_SITE_CAPTION=AI-Powered Photos App
PHOTOPRISM_SITE_DESCRIPTION=
PHOTOPRISM_SITE_AUTHOR=
## Video Transcoding (https://docs.photoprism.app/getting-started/advanced/transcoding/):
@ -70,8 +70,8 @@ PHOTOPRISM_SITE_AUTHOR=
# 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"
# 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
# PHOTOPRISM_UID=1000
# PHOTOPRISM_GID=1000
# PHOTOPRISM_UMASK=0000

View file

@ -18,7 +18,7 @@ services:
ports:
- "2342:2342" # HTTP port (host:container)
env_file:
- photoprism.env
- stack.env
working_dir: "/photoprism" # do not change or remove
## Storage Folders: "~" is a shortcut for your home directory, "." for the current directory
volumes:
@ -39,4 +39,4 @@ services:
volumes:
- "./database:/var/lib/mysql" # DO NOT REMOVE
env_file:
- photoprism.env
- stack.env