From d3792f8e7b961940f54c15311fbf6cf4f050b45b Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Wed, 27 Nov 2024 19:13:36 -0500 Subject: [PATCH] Update README and specific `DT_SQLITE_PATH` for docker example --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6033270..e8a1707 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,10 @@ An open-source, user-friendly app for managing tasks and chores, featuring custo Release binary included everything needed to be up and running, as even the frontend file served ### Using Docker run : 1. pull the latest image using: `docker pull donetick/donetick` -2. run the container `DT_ENV=selfhosted docker run -v /path/to/host/data:/usr/src/app/data -p 2021:2021 donetick/donetick` +2. run the container and replace `/path/to/host/data` with where you want to place attach the volumne for the sqlite db `DT_ENV=selfhosted DT_SQLITE_PATH=/donetick-data/donetick.db docker run -v /path/to/host/data:/donetick-data -p 2021:2021 donetick/donetick` + + + ### Using Docker Compose: @@ -30,10 +33,11 @@ services: ports: - 2021:2021 # needed for serving backend and frontend volumes: - - ./data:/usr/src/app/data # database file stored (sqlite database) + - ./data:/donetick-data # database file stored (sqlite database) - ./config:/config # configration file like selfhosted.yaml environment: - DT_ENV=selfhosted # this tell donetick to load ./config/selfhosted.yaml for the configuration file + - DT_SQLITE_PATH=/donetick-data/donetick.db ```