Fix directory path in docker-compose.yml

This commit is contained in:
Eugene Burmakin 2024-10-05 14:13:48 +02:00
parent 1ec423fcb5
commit fb2468ab3d
4 changed files with 15 additions and 3 deletions

2
.gitignore vendored
View file

@ -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

View file

@ -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

View file

@ -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:

View file

@ -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.