From 5e2c8c57c4c8413df8470991ed0ef6bc351bba90 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 1 Dec 2022 03:28:45 +0100 Subject: [PATCH] Adapt readme --- photoprism/README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/photoprism/README.md b/photoprism/README.md index a5829cee6..3d2df1cae 100644 --- a/photoprism/README.md +++ b/photoprism/README.md @@ -52,7 +52,7 @@ Options can be configured through two ways : ssl: true/false certfile: fullchain.pem #ssl certificate, must be located in /ssl keyfile: privkey.pem #sslkeyfile, must be located in /ssl -DB_TYPE: "list(sqlite|mariadb_addon)" # Mariadb is automatically configured is the addon is installed, sqlite does not need configuration +DB_TYPE: "list(sqlite|mariadb_addon|external)" # Mariadb is automatically configured is the addon is installed, sqlite does not need configuration localdisks: sda1 #put the hardware name of your drive to mount separated by commas, or its label. Ex: sda1, sdb1, MYNAS... networkdisks: "//SERVER/SHARE" # optional, list of smb servers to mount, separated by commas cifsusername: "username" # optional, smb username, same for all smb shares @@ -72,6 +72,18 @@ Configuration is done by customizing the config.yaml that can be found in /confi The complete list of options can be seen here : https://github.com/photoprism/photoprism/blob/develop/docker-compose.yml +- External db setting (@wesleygas) + +Allow for the use of an external database. This can be done in photoprism by correctly setting the following options on the addons_config/photoprism/config.yaml file: + +``` +PHOTOPRISM_DATABASE_DRIVER: "mysql" +PHOTOPRISM_DATABASE_SERVER: "IP:PORT" +PHOTOPRISM_DATABASE_NAME: "photoprism" +PHOTOPRISM_DATABASE_USER: "USERNAME" +PHOTOPRISM_DATABASE_PASSWORD: "PASSWORD +``` + ## Illustration ![1622396210_840_560](https://user-images.githubusercontent.com/44178713/127819841-2281ac79-ea96-4b41-9704-522957c5b9c3.jpg)