New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation issue #535
Comments
Signed-off-by: Michael Mayer <michael@lastzero.net>
Thanks for reporting this! Should be fixed, starting a new Docker build. As a workaround, you may uncomment / remove the |
And please make sure the storage path is NOT disabled / commented out like this:
Otherwise, settings and sidecar files can not be saved properly. |
Updated our |
Hello Michael,
i updated photoprism with your recommendation below. Now it's working
(healthy) but no pictures showing up (only placeholders)? What may be the
reason for this?
Mit freundlichen Grüßen
*Falko von Strauss und Torney*
Georgstr. 5
31675 Bückeburg
mailto: falkov1@gmail.com
Am Mi., 7. Okt. 2020 um 12:56 Uhr schrieb Michael Mayer <
notifications@github.com>:
… And please make sure the storage path is NOT disabled / commented out like
this:
# - "/Photoprism/Storage:/photoprism/storage" # Settings, index, sidecar files, and generated thumbnails
Otherwise, settings and sidecar files can not be saved properly.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#535 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AISLWLKMFF6TJXRL7ATSN33SJRCO7ANCNFSM4SHCOSRQ>
.
|
You might also need to re-index (completely) since all thumbnails / preview images created earlier are lost if the storage path was not configured as permanent volume. Docker resets the filesystem by default when a container restarts. It's possible to also render preview images dynamically on-demand, but this is turned off by default as it requires a powerful CPU and addition memory that is often not available on smaller servers like a Raspberry Pi. |
Hello Michael,
so I did the right thing unknowingly. Now it's working fine. Thank you for
your help!
Mit freundlichen Grüßen
*Falko von Strauss und Torney*
Georgstr. 5
31675 Bückeburg
mailto: falkov1@gmail.com
Am Mi., 7. Okt. 2020 um 14:22 Uhr schrieb Michael Mayer <
notifications@github.com>:
… You might also need to re-index (completely) since all thumbnails /
preview images created earlier are lost if the storage path was not
configured as permanent volume. Docker resets the filesystem by default
when a container restarts.
It's possible to also render preview images dynamically on-demand, but
this is turned off by default as it requires a powerful CPU and addition
memory that is often not available on smaller servers like a Raspberry Pi.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#535 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AISLWLMHJJ23HCQ2LETIOQLSJRMPHANCNFSM4SHCOSRQ>
.
|
Hello Michael,
my next problem using photoprism is to locate the local Volumes. I
installed docker and the dockerfiles as root on the VPS. At this moment i
was the only user.
Now i can't find any local Volume "Pictures" or "Storage" or "Import", i.e
not in the /home directory. So i am unable to put files into the
import-folder as in the userguide described.
I still do not understand the relation between the Docker filesystem and
the local filesystem, sorry.
I used ~ to mark the /home-directory in the docker-composer.yml, but there
are no Subdirectories created.
Perhaps i forgot to set a user number for al local user in line 18 of
docker-composer.yml. How can this be fixed?
Mit freundlichen Grüßen
*Falko von Strauss und Torney*
Georgstr. 5
31675 Bückeburg
mailto: falkov1@gmail.com
Am Mi., 7. Okt. 2020 um 15:26 Uhr schrieb Falko von Strauss und Torney <
falkov1@gmail.com>:
… Hello Michael,
so I did the right thing unknowingly. Now it's working fine. Thank you for
your help!
Mit freundlichen Grüßen
*Falko von Strauss und Torney*
Georgstr. 5
31675 Bückeburg
mailto: ***@***.***
Am Mi., 7. Okt. 2020 um 14:22 Uhr schrieb Michael Mayer <
***@***.***>:
> You might also need to re-index (completely) since all thumbnails /
> preview images created earlier are lost if the storage path was not
> configured as permanent volume. Docker resets the filesystem by default
> when a container restarts.
>
> It's possible to also render preview images dynamically on-demand, but
> this is turned off by default as it requires a powerful CPU and addition
> memory that is often not available on smaller servers like a Raspberry Pi.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#535 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AISLWLMHJJ23HCQ2LETIOQLSJRMPHANCNFSM4SHCOSRQ>
> .
>
|
Hello Michael,
i managed to find the directories now unter /root. After restart of
photoprism my password is reset to standard? Is this a normal behavior?
Mit freundlichen Grüßen
*Falko von Strauss und Torney*
Georgstr. 5
31675 Bückeburg
mailto: falkov1@gmail.com
Am Mi., 7. Okt. 2020 um 22:25 Uhr schrieb Falko von Strauss und Torney <
falkov1@gmail.com>:
… Hello Michael,
my next problem using photoprism is to locate the local Volumes. I
installed docker and the dockerfiles as root on the VPS. At this moment i
was the only user.
Now i can't find any local Volume "Pictures" or "Storage" or "Import", i.e
not in the /home directory. So i am unable to put files into the
import-folder as in the userguide described.
I still do not understand the relation between the Docker filesystem and
the local filesystem, sorry.
I used ~ to mark the /home-directory in the docker-composer.yml, but there
are no Subdirectories created.
Perhaps i forgot to set a user number for al local user in line 18 of
docker-composer.yml. How can this be fixed?
Mit freundlichen Grüßen
*Falko von Strauss und Torney*
Georgstr. 5
31675 Bückeburg
mailto: ***@***.***
Am Mi., 7. Okt. 2020 um 15:26 Uhr schrieb Falko von Strauss und Torney <
***@***.***>:
> Hello Michael,
>
> so I did the right thing unknowingly. Now it's working fine. Thank you
> for your help!
>
> Mit freundlichen Grüßen
> *Falko von Strauss und Torney*
>
> Georgstr. 5
> 31675 Bückeburg
> mailto: ***@***.***
>
>
>
>
> Am Mi., 7. Okt. 2020 um 14:22 Uhr schrieb Michael Mayer <
> ***@***.***>:
>
>> You might also need to re-index (completely) since all thumbnails /
>> preview images created earlier are lost if the storage path was not
>> configured as permanent volume. Docker resets the filesystem by default
>> when a container restarts.
>>
>> It's possible to also render preview images dynamically on-demand, but
>> this is turned off by default as it requires a powerful CPU and addition
>> memory that is often not available on smaller servers like a Raspberry Pi.
>>
>> —
>> You are receiving this because you authored the thread.
>> Reply to this email directly, view it on GitHub
>> <#535 (comment)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/AISLWLMHJJ23HCQ2LETIOQLSJRMPHANCNFSM4SHCOSRQ>
>> .
>>
>
|
No, won't happen again. We had to perform changes in our database in preparation for a stable release. You should still set a secure default password in case the database is lost or unavailable for any reason. |
|
I'll close this. You're welcome to contact us anytime should there be other issues! |
Hello,
i didn't use Photoprism for some days. After an attempt to login it told me
that my credentials are false. Further investigations showed, that the
mysql-container was up only for 4 days and the phptoprism-container for 22
days.
I managed to set a "new" password using the composer exec setup. Then i
recognized that the photo collection was completely empty. Reindexing did
populate the database again, but my albums got lost.
So - is there an easy possibility to backup/restore the mysql database
against data loss? Could this be implemented in photoprism?
Mit freundlichen Grüßen
*Falko von Strauss und Torney*
Georgstr. 5
31675 Bückeburg
mailto: falkov1@gmail.com
Am Mo., 12. Okt. 2020 um 09:16 Uhr schrieb Michael Mayer <
notifications@github.com>:
… I'll close this. You're welcome to contact us anytime should there be
other issues!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#535 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AISLWLLJM45RT7IBKPHDJ43SKKUMPANCNFSM4SHCOSRQ>
.
|
You can create SQL backups using any standard database tools like |
We'll add built-in tools that are easier to use, but this will take a while to develop. |
Hello,
i managed it with this recipe:
Backup and restore a mysql database from a running Docker mysql container
* mysql-docker.sh *
<https://gist.github.com/spalladino/6d981f7b33f6e0afe6bb#file-mysql-docker-sh>
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE >
backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root
--password=root DATABASE
Maybe it's possible to integrate this in Photoprism.
Mit freundlichen Grüßen
*Falko von Strauss und Torney*
Georgstr. 5
31675 Bückeburg
mailto: falkov1@gmail.com
Am Di., 10. Nov. 2020 um 11:40 Uhr schrieb Michael Mayer <
notifications@github.com>:
… We'll add built-in tools that are easier to use, but this will take a
while to develop.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#535 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AISLWLP7L7PB6RUYTQTXVGDSPEKDFANCNFSM4SHCOSRQ>
.
|
Hello Michael,
this seems to be a deeper problem: The database docker image is starting
randomly new (at the moment 12 hours ago) and is thereby loosing it's
contents. I could manage a backup as i described in my last mail but the
system seems at the moment not to be reliable as a whole.
What can i do?
Mit freundlichen Grüßen
*Falko von Strauss und Torney*
Georgstr. 5
31675 Bückeburg
mailto: falkov1@gmail.com
Am Di., 10. Nov. 2020 um 19:40 Uhr schrieb Falko von Strauss und Torney <
falkov1@gmail.com>:
… Hello,
i managed it with this recipe:
Backup and restore a mysql database from a running Docker mysql container
* mysql-docker.sh *
<https://gist.github.com/spalladino/6d981f7b33f6e0afe6bb#file-mysql-docker-sh>
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE
> backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root
--password=root DATABASE
Maybe it's possible to integrate this in Photoprism.
Mit freundlichen Grüßen
*Falko von Strauss und Torney*
Georgstr. 5
31675 Bückeburg
mailto: ***@***.***
Am Di., 10. Nov. 2020 um 11:40 Uhr schrieb Michael Mayer <
***@***.***>:
> We'll add built-in tools that are easier to use, but this will take a
> while to develop.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#535 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AISLWLP7L7PB6RUYTQTXVGDSPEKDFANCNFSM4SHCOSRQ>
> .
>
|
Hello,
a look into /var/lib/docker/volumes shows a number of different volumes
created on different days:
[image: docker_volumes.jpg]
This are in my opinion the supposed randomly made new starts of the
container.
How to prevent this?
here is the mysql-part of the docker-composer.yml file:
photoprism-db:
image: mariadb:10.5 # Alternatively mysql:8.0
restart: unless-stopped
command: mysqld --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=50
volumes:
- "/var/lib/mysql"
environment:
MYSQL_ROOT_PASSWORD: xxxx
MYSQL_USER: photoprism
MYSQL_PASSWORD: photoprism
MYSQL_DATABASE: photoprism
Mit freundlichen Grüßen
*Falko von Strauss und Torney*
Georgstr. 5
31675 Bückeburg
mailto: falkov1@gmail.com
Am Do., 12. Nov. 2020 um 10:43 Uhr schrieb Falko von Strauss und Torney <
falkov1@gmail.com>:
… Hello Michael,
this seems to be a deeper problem: The database docker image is starting
randomly new (at the moment 12 hours ago) and is thereby loosing it's
contents. I could manage a backup as i described in my last mail but the
system seems at the moment not to be reliable as a whole.
What can i do?
Mit freundlichen Grüßen
*Falko von Strauss und Torney*
Georgstr. 5
31675 Bückeburg
mailto: ***@***.***
Am Di., 10. Nov. 2020 um 19:40 Uhr schrieb Falko von Strauss und Torney <
***@***.***>:
> Hello,
>
> i managed it with this recipe:
>
> Backup and restore a mysql database from a running Docker mysql container
> * mysql-docker.sh *
> <https://gist.github.com/spalladino/6d981f7b33f6e0afe6bb#file-mysql-docker-sh>
> # Backup
> docker exec CONTAINER /usr/bin/mysqldump -u root --password=root
> DATABASE > backup.sql
>
> # Restore
> cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root
> --password=root DATABASE
>
> Maybe it's possible to integrate this in Photoprism.
>
> Mit freundlichen Grüßen
> *Falko von Strauss und Torney*
>
> Georgstr. 5
> 31675 Bückeburg
> mailto: ***@***.***
>
>
>
>
> Am Di., 10. Nov. 2020 um 11:40 Uhr schrieb Michael Mayer <
> ***@***.***>:
>
>> We'll add built-in tools that are easier to use, but this will take a
>> while to develop.
>>
>> —
>> You are receiving this because you authored the thread.
>> Reply to this email directly, view it on GitHub
>> <#535 (comment)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/AISLWLP7L7PB6RUYTQTXVGDSPEKDFANCNFSM4SHCOSRQ>
>> .
>>
>
|
It might help to use a named volume as shown here: https://docs.docker.com/compose/compose-file/#volumes However, I never observed that docker randomly creates new volumes (instead of using the existing one) if no named volume is specified. |
Hello,
i don't know how to implement a named volume in the running docker
instance.
The random deletion of the database now happened again at 26/11/20 00:46.
I must say that under these circumstances your program isn`t fit for
production use yet.
Mit freundlichen Grüßen
*Falko von Strauss und Torney*
Georgstr. 5
31675 Bückeburg
mailto: falkov1@gmail.com
Am Do., 12. Nov. 2020 um 20:28 Uhr schrieb Michael Mayer <
notifications@github.com>:
… It might help to use a named volume as shown here:
https://docs.docker.com/compose/compose-file/#volumes
However, I never observed that docker randomly creates new volumes
(instead of using the existing one) if no named volume is specified.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#535 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AISLWLLNK7HTHCXPYXWCB7DSPQZOVANCNFSM4SHCOSRQ>
.
|
Docker volumes can be hard to track. I prefer to mount volumes from the host server. You can mount a directory on your host to keep the database data:
Replace |
Hello,
i did so as you wrote. Error: Service "photoprism-db" uses an undefined
network "photoprism"
Mit freundlichen Grüßen
*Falko von Strauss und Torney*
Georgstr. 5
31675 Bückeburg
mailto: falkov1@gmail.com
Am Fr., 27. Nov. 2020 um 13:28 Uhr schrieb Alexis Lefebvre <
notifications@github.com>:
… Docker volumes can be hard to track. I prefer to mount volumes from the
host server.
|
Ok, then remove this part:
Or, take your previous configuration and change only the values in |
Hello,
after an automatic upgrade of photoprism i receive the following error:
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request
Reason: *Error reading from remote server*
docker ps shows:
bcffe206b6eb photoprism/photoprism:latest "/entrypoint.sh phot…"
About an hour ago Up 9 seconds (health: starting) 0.0.0.0:2342->2342/tcp
photoprism_photoprism_1
5a13a8d058d6 mariadb:10.5 "docker-entrypoint.s…" 2
weeks ago Up 3 days 3306/tcp
photoprism_photoprism-db_1
b371ce686cfe containrrr/watchtower "/watchtower" 6
weeks ago Up 3 days 8080/tcp
photoprism_watchtower_1
The "health: starting" message is repeatingl shown.
Nothing else was changed.
Mit freundlichen Grüßen
*Falko von Strauss und Torney*
Georgstr. 5
31675 Bückeburg
mailto: falkov1@gmail.com
Am Mi., 7. Okt. 2020 um 12:27 Uhr schrieb Michael Mayer <
notifications@github.com>:
… Thanks for reporting this!
Should be fixed, starting a new Docker build. As a workaround, you may
uncomment / remove the healthcheck: section if it causes unexpected
restarts.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#535 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AISLWLN6EU6PAJUXRAJXF7TSJQ7ABANCNFSM4SHCOSRQ>
.
|
We will have a look at this later today or tomorrow! |
@falkov237 You're welcome to open a new issue next time! Didn't find this because it is closed already. Does this also happen using today's Docker image? The error message is strange in that we use external servers for geodata and maps only and there is no proxy config whatsoever (in fact, we should add it if someone is still using a proxy in 2020). Maybe PhotoPrism can't connect to our backend to get an API key for the maps (which are served by an external service provider). It still shouldn't restart in this case. Or the error is from Watchtower, trying to update PhotoPrism and failing because of the request limit that Docker Hub introduced recently? You may send us your external IP address to hello@photoprism.app for debugging, maybe we can see something in our logs. It's best to turn watchtower and the Docker health check off for testing, so that the issue can be located more easily and there is no distraction from other logs and processes. In the worst case, we need to start debugging your server environment... |
Sorry for my late answer: i deleted Photoprism from my server and switched
to another program. Perhaps i will try Photoprism later in a more developed
status.
Mit freundlichen Grüßen
*Falko von Strauss und Torney*
Georgstr. 5
31675 Bückeburg
mailto: falkov1@gmail.com
Am Sa., 19. Dez. 2020 um 04:22 Uhr schrieb Michael Mayer <
notifications@github.com>:
… @falkov237 <https://github.com/falkov237> You're welcome to open a new
issue next time! Didn't find this because it is closed already.
Does this also happen using today's Docker image? The error message is
strange in that we use external servers for geodata and maps only and there
is no proxy config whatsoever (in fact, we should add it if someone is
still using a proxy in 2020).
Maybe PhotoPrism can't connect to our backend to get an API key for the
maps (which are served by an external service provider). It still shouldn't
restart in this case. Or the error is from Watchtower, trying to update
PhotoPrism and failing because of the request limit that Docker Hub
introduced recently? You may send us your external IP address to
***@***.*** for debugging, maybe we can see something in our
logs.
It's best to turn watchtower and the Docker health check off for testing,
so that the issue can be located more easily and there is no distraction
from other logs and processes.
In the worst case, we need to start debugging your server environment...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#535 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AISLWLPJQNQ5QLU2YGCFYY3SVQL7JANCNFSM4SHCOSRQ>
.
|
Fair enough! Sorry we couldn't take care of your issues earlier. Frohe Weihnachten 🎄 |
Maybe removing the health check from https://dl.photoprism.org/docker/docker-compose.yml I don't believe your error was an issue with PhotoPrism as such, but with the local configuration. Issues there have nothing to do with our software being unstable. We do our best to help users with setting up Docker. In addition we're going to provide other installation methods as we've noticed many users have issues with their Docker configuration. A typo or a wrong path is enough to cause major issues. |
Added this question to our FAQs: https://docs.photoprism.org/getting-started/faq/#why-is-photoprism-getting-stuck-in-a-restart-loop |
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
I think the wrong volume is being mounted for the linuxserver/mariadb container in the case of the raspberry pi docker-compose yaml. ( Is there a reason the pi config uses linuxserver and the normal apparently doesn't?) The current volume being mounted is I started the "re-indexing" only via the index command and it now says |
Using linuxserver/mariadb was recommended by one of our users - without telling us that the storage path is different. Can you send a tested PR for our docker-compose.yml example? |
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
Hopefully fixed by using their official image, see https://dl.photoprism.org/docker/arm64/docker-compose.yml |
I am new here, hello. I tried to install photoprism on Ubuntu 18.04 (VPS, hosted Server) and failed to start the photoprism container. Status is stuck: "(health: starting)" for hours. The photoprism bash status shows "ERRO[2020-10-07T08:17:33Z] can't connect to 0.0.0.0:2342". I have purged all containers, reinstalled docker and photoprism but the problem persists. My first attempt to install worked like a charm, then by accident i reinstalled photoprism-yml again (over) and after that prism didn't work anymore. My docker-compose.yml is attached.
version: '3.5'
Example Docker Compose config file for PhotoPrism (Intel / AMD64)
Documentation : https://docs.photoprism.org/getting-started/docker-compose/
Docker Hub URL: https://hub.docker.com/r/photoprism/photoprism/
Please run behind a reverse proxy like Caddy, Traefik or Nginx if you need HTTPS / SSL support
e.g. when running PhotoPrism on a public server outside your home network.
Usage: docker-compose up
services:
photoprism:
image: photoprism/photoprism:latest
restart: unless-stopped
# Uncomment and edit the following line to set a specific user / group id:
# user: "1000:1000"
security_opt:
- seccomp:unconfined
- apparmor:unconfined
ports:
- 2342:2342 # [local port]:[container port]
healthcheck: # Optional
test: "photoprism status"
interval: 60s
timeout: 15s
retries: 5
environment: # Run "photoprism help" and "photoprism config" too see all config options and current values
PHOTOPRISM_DEBUG: "false" # Run in debug mode (shows additional log messages)
PHOTOPRISM_PUBLIC: "false" # No authentication required (disables password protection)
PHOTOPRISM_READONLY: "false" # Don't modify originals directory (reduced functionality)
PHOTOPRISM_UPLOAD_NSFW: "true" # Allow uploads that MAY be offensive
PHOTOPRISM_DETECT_NSFW: "false" # Flag photos as private that MAY be offensive
PHOTOPRISM_EXPERIMENTAL: "false" # Enable experimental features
PHOTOPRISM_SITE_URL: "http://fato27.de:2342/" # Canonical / public site URL
PHOTOPRISM_SITE_TITLE: "PhotoPrism"
PHOTOPRISM_SITE_CAPTION: "Browse Your Life"
PHOTOPRISM_SITE_DESCRIPTION: ""
PHOTOPRISM_SITE_AUTHOR: ""
PHOTOPRISM_HTTP_HOST: "0.0.0.0"
PHOTOPRISM_HTTP_PORT: 2342
PHOTOPRISM_SETTINGS_HIDDEN: "false" # Users can not view or change settings
PHOTOPRISM_ADMIN_PASSWORD: "photoprism" # Initial admin password (can be changed in settings)
# PHOTOPRISM_DATABASE_DRIVER: "sqlite" # Change to "mysql" for external MySQL or MariaDB
PHOTOPRISM_DATABASE_DRIVER: "mysql" # Using MariaDB or MySQL instead of SQLite is optional
# PHOTOPRISM_DATABASE_DSN: "user:passwd@tcp(photoprism-db:3306)/photoprism?charset=utf8mb4,utf8&parseTime=true"
PHOTOPRISM_SIDECAR_JSON: "true" # Automatically create JSON sidecar files using Exiftool
PHOTOPRISM_SIDECAR_YAML: "true" # Automatically backup metadata to YAML sidecar files
PHOTOPRISM_THUMB_FILTER: "lanczos" # Resample filter, best to worst: blackman, lanczos, cubic, linear
PHOTOPRISM_THUMB_UNCACHED: "false" # Enable on-demand thumbnail rendering (high memory and cpu usage)
PHOTOPRISM_THUMB_SIZE: 2048 # Pre-rendered thumbnail size limit (default 2048, min 720, max 7680)
# PHOTOPRISM_THUMB_SIZE: 4096 # Retina 4K, DCI 4K (requires more storage); 7680 for 8K Ultra HD
PHOTOPRISM_THUMB_SIZE_UNCACHED: 7680 # On-demand rendering size limit (default 7680, min 720, max 7680)
PHOTOPRISM_JPEG_SIZE: 7680 # Size limit for converted image files in pixels (720-30000)
PHOTOPRISM_JPEG_QUALITY: 92 # Set to 95 for high-quality thumbnails (25-100)
PHOTOPRISM_DARKTABLE_PRESETS: "false" # Use darktable presets (disables concurrent raw to jpeg conversion)
volumes:
- "
/Photoprism/Pictures:/photoprism/originals" # [local path]:[container path]/Photoprism/Family:/photoprism/originals/Family" # [folder_1]:/photoprism/originals/[folder_1]# Multiple folders can be indexed by mounting them as subfolders of /photoprism/originals:
# - "
# - "
/Photoprism/Friends:/photoprism/originals/Friends" # [folder_2]:/photoprism/originals/[folder_2]/Photoprism/Storage:/photoprism/storage" # Settings, index, sidecar files, and generated thumbnails# - "
# - "~/Photoprism/Import:/photoprism/import" # Mounting the import folder is optional (see docs)
Uncomment the following lines to use MariaDB instead of SQLite for improved performance & scalability:
photoprism-db:
image: mariadb:10.5 # Alternatively mysql:8.0
restart: unless-stopped
command: mysqld --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=50
volumes:
- "/var/lib/mysql"
environment:
MYSQL_ROOT_PASSWORD: f3LhEup9AD756UPS
MYSQL_USER: root
MYSQL_PASSWORD: passwd
Uncomment the following lines to upgrade automatically, whenever there is a new Docker image available:
watchtower:
image: containrrr/watchtower
restart: unless-stopped
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
docker-compose.txt
The text was updated successfully, but these errors were encountered: