Fixed problem with docker volume mount location

This commit is contained in:
CasVT
2023-01-22 18:38:47 +01:00
parent 5494185b9a
commit 2559436108
2 changed files with 3 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ from frontend.ui import ui
HOST = '0.0.0.0'
PORT = '8080'
THREADS = 10
DB_FILENAME = 'Noted.db'
DB_FILENAME = 'db', 'Noted.db'
def _folder_path(*folders) -> str:
"""Turn filepaths relative to the project folder into absolute paths
@@ -79,7 +79,7 @@ def Noted() -> None:
# Register web server
app = _create_app()
with app.app_context():
DBConnection.file = _folder_path(DB_FILENAME)
DBConnection.file = _folder_path(*DB_FILENAME)
setup_db()
reminder_handler._find_next_reminder()

View File

@@ -27,10 +27,9 @@ You can see our planned features in our [Project board](https://github.com/users
## Installation
Replace the timezone value (`TZ=`) to the [TZ database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of your timezone!
```bash
docker volume create noted-db
docker run -d \
--name noted \
-v noted-db:/app \
-v noted-db:/app/db \
-e TZ=Europe/Amsterdam \
-p 8080:8080 \
mrcas/noted:latest