chore(docker-compose): add sqlite variable and volumes example (#851)
This commit is contained in:
parent
87365c1a62
commit
31ccb9aad3
|
@ -26,6 +26,10 @@ services:
|
||||||
- PHOTOVIEW_LISTEN_IP=photoview
|
- PHOTOVIEW_LISTEN_IP=photoview
|
||||||
- PHOTOVIEW_LISTEN_PORT=80
|
- PHOTOVIEW_LISTEN_PORT=80
|
||||||
- PHOTOVIEW_MEDIA_CACHE=/app/cache
|
- 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"
|
# Optional: If you are using Samba/CIFS-Share and experience problems with "directory not found"
|
||||||
# Enable the following Godebug
|
# Enable the following Godebug
|
||||||
|
@ -46,6 +50,9 @@ services:
|
||||||
# You can mount multiple paths, if your photos are spread across multiple directories.
|
# You can mount multiple paths, if your photos are spread across multiple directories.
|
||||||
- ./photos_path:/photos:ro
|
- ./photos_path:/photos:ro
|
||||||
|
|
||||||
|
# If using sqlite, you can bind the datbase folder to the host
|
||||||
|
# - /opt/photoview/database:/app/database
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
db_data:
|
db_data:
|
||||||
api_cache:
|
api_cache:
|
||||||
|
|
Loading…
Reference in New Issue