From 31ccb9aad3b4d43a88189fa09438bc245fb2ec3b Mon Sep 17 00:00:00 2001 From: Ale C <11180418+alcaprar@users.noreply.github.com> Date: Fri, 29 Mar 2024 22:09:20 +0100 Subject: [PATCH] chore(docker-compose): add sqlite variable and volumes example (#851) --- docker-compose.example.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker-compose.example.yml b/docker-compose.example.yml index 009d143e..773bcab8 100644 --- a/docker-compose.example.yml +++ b/docker-compose.example.yml @@ -26,6 +26,10 @@ services: - PHOTOVIEW_LISTEN_IP=photoview - PHOTOVIEW_LISTEN_PORT=80 - PHOTOVIEW_MEDIA_CACHE=/app/cache + + # If you want to use sqlite driver, you can get rid of the mariadb service defined above and the PHOTOVIEW_MYSQL_URL variable + # - PHOTOVIEW_DATABASE_DRIVER=sqlite + # - PHOTOVIEW_SQLITE_PATH=/app/database/photoview.db # Optional: If you are using Samba/CIFS-Share and experience problems with "directory not found" # Enable the following Godebug @@ -46,6 +50,9 @@ services: # You can mount multiple paths, if your photos are spread across multiple directories. - ./photos_path:/photos:ro + # If using sqlite, you can bind the datbase folder to the host + # - /opt/photoview/database:/app/database + volumes: db_data: api_cache: