Resolve "prepare docker volumes for services"
Closes #153 (closed)
Replace hard-coded mount paths of data-generating services with environment variables to increase flexibility. For every service that can create data we define a docker volume that can be used instead of the local data directory.
Can be tested by:
- setting
<SERVICE>_PERSISTENCE_VOLUMEto local path that was originally used (see below, except for MinIO) - optionally, trying another path to a directory with write permissions for user
UID, e.g./tmp/... - set
<SERVICE>_PERSISTENCE_VOLUME=(empty) or use default values from.env.exampleto use pre-defined docker volumes.
.env on stage and prod needs to be updated before merging
set
OBJECT_STORAGE_PERSISTENCE_VOLUME=/mnt/tsm/minio/data/VISUALIZATION_PERSISTENCE_VOLUME=./data/grafanaMQTT_PERSISTENCE_VOLUME=./data/mosquittoFROST_PERSISTENCE_VOLUME=tomcat-contextCRON_PERSISTENCE_VOLUME=./cronDATABASE_PERSISTENCE_VOLUME=database
Edited by Joost Hemmen