From fb2468ab3d83bbef861481bb1ca6b4fbc92b67be Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Sat, 5 Oct 2024 14:13:48 +0200 Subject: [PATCH] Fix directory path in docker-compose.yml --- .gitignore | 2 +- CHANGELOG.md | 7 +++++++ docker-compose.yml | 5 +++-- tmp/imports/watched/put-your-directory-here.txt | 4 ++++ 4 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 tmp/imports/watched/put-your-directory-here.txt diff --git a/.gitignore b/.gitignore index 881769d1..d53fcdf6 100644 --- a/.gitignore +++ b/.gitignore @@ -29,7 +29,7 @@ /tmp/imports/watched/* !/tmp/imports/watched/ !/tmp/imports/watched/.keep -!/tmp/imports/watched/put-your-files-here.txt +!/tmp/imports/watched/put-your-directory-here.txt /public/assets diff --git a/CHANGELOG.md b/CHANGELOG.md index d236419c..e3ad1e76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,13 @@ To expose the watcher functionality to the user, a new directory `/tmp/imports/w + - watched:/var/app/tmp/watched ... + +volumes: + db_data: + gem_cache: + shared_data: + public: ++ watched: ``` ### Changed diff --git a/docker-compose.yml b/docker-compose.yml index c94a3ea8..701cede9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,7 +27,7 @@ services: volumes: - gem_cache:/usr/local/bundle/gems - public:/var/app/public - - watched:/var/app/tmp/watched + - watched:/var/app/tmp/imports/watched networks: - dawarich ports: @@ -69,7 +69,7 @@ services: volumes: - gem_cache:/usr/local/bundle/gems - public:/var/app/public - - watched:/var/app/tmp/watched + - watched:/var/app/tmp/imports/watched networks: - dawarich stdin_open: true @@ -109,3 +109,4 @@ volumes: gem_cache: shared_data: public: + watched: diff --git a/tmp/imports/watched/put-your-directory-here.txt b/tmp/imports/watched/put-your-directory-here.txt new file mode 100644 index 00000000..bf80af03 --- /dev/null +++ b/tmp/imports/watched/put-your-directory-here.txt @@ -0,0 +1,4 @@ +The /tmp/imports/watched/USER@EMAIL.TLD directory is watched by Dawarich. Any files you put in this directory under a directory names with the email of the user you want to import the file for will be imported into the database. + +For example, if you want to import a file for the user with the email address "email@dawarich.app", you would place the file in the directory /tmp/imports/watched/email@dawarich.app. The file you place in this directory should be a GeoJSON or GPX file that contains the data you want to import. Dawarich automatically scans directories for new files every 60 minutes, on 0 minute of every hour, so you should see the file imported into the database within 1 hour of placing it in the directory. +