mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-09 08:47:11 -05:00
Fix directory path in docker-compose.yml
This commit is contained in:
parent
1ec423fcb5
commit
fb2468ab3d
4 changed files with 15 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
4
tmp/imports/watched/put-your-directory-here.txt
Normal file
4
tmp/imports/watched/put-your-directory-here.txt
Normal 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.
|
||||
|
||||
Loading…
Reference in a new issue