1
Fork 0

chore(docker-compose): add sqlite variable and volumes example (#851)

This commit is contained in:
Ale C 2024-03-29 22:09:20 +01:00 committed by GitHub
parent 87365c1a62
commit 31ccb9aad3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -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: