From f593109632a2623148630505562a5ad485e2b2d7 Mon Sep 17 00:00:00 2001 From: SimplyBoo6 Date: Sat, 13 Jan 2024 10:28:38 +0000 Subject: [PATCH] Updated README.md with SQLite --- README.md | 3 ++- docker-compose.yml | 10 ---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index d2a9b09..5c07557 100755 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ - Automatic image clone detection and viewer using perceuptual hashing. - Playlists - Download with gallery-dl or youtube-dlp +- Support for SQLite (default) and MongoDB ## Quick-Start @@ -60,7 +61,7 @@ The server can be run as a Docker instance. It accepts the following environment - (optional) USERNAME - A username to login with. PASSWORD also required. - (optional) PASSWORD - A password to login with. USERNAME required too. - (optional) PORT - A port for the Docker instance to expose. Default 3523. -- (optional) DATABASE - Must be set to `mongodb` (default). +- (optional) DATABASE - Either `sqlite` (default) or `mongodb`. SQLite DB is created in the cache dir and called vimtur.db. - If using `mongodb` then you must also set `DATABASE_URI` to a MongoDB connection string (eg `mongodb://localhost`) and `DATABASE_DB` to the database name. Note: Any of these variables can be used when starting the NodeJS app natively. diff --git a/docker-compose.yml b/docker-compose.yml index a04e7b4..cc94861 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,23 +2,13 @@ version: '3' services: vimtur: image: simplyboo6/vimtur:5 -# build: -# context: . -# dockerfile: Dockerfile.pre environment: - CACHE_PATH=/cache/ - DATA_PATH=/data/ - USERNAME - PASSWORD - - DATABASE=mongodb - - DATABASE_URI=mongodb://mongo - - DATABASE_DB=vimtur volumes: - ${DATA_DIR}:/data/ - ${CACHE_DIR}:/cache/ ports: - '${PORT}:3523' - mongo: - image: mongo - volumes: - - ${CACHE_DIR}/mongo:/data/db