Hello,
i’m using the new multicontainer feature.
I’ve successfully built and deployed my microservices using the docker-compose below and everything is fine except for the persistent storage: in folder /mnt/data/resin-data i see only “resin-supervisor” but not my services’ folders.
root@58bba1f:/mnt/data/resin-data# ls -la
total 12
drwxr-xr-x 3 root root 4096 Feb 28 06:08 .
drwxr-xr-x 6 root root 4096 Feb 28 06:08 …
drwxr-xr-x 2 root root 4096 Mar 11 17:48 resin-supervisor
To expand on this @arturol76 , you’ll want to make sure you have the named volume defined at the top-level of the docker-compose.yml, in addition to the named volume link in the service, which it seems you have correctly defined in your mymosquitto service.
Hey @lv82, the second way is they way I do it, you can have a look at my mc-demo project where I add a telegraf service that logs metrics to another backend influx instance.
@lv82 good catch, I always just copy a template readme I am actually working on an expansion of this project that includes a services for remote logging (probably loggly ), also wanna make use of the balena HEALTHCHECK functionality and generally make a nice “Starter” pack project that will get people going quickly with this type of stuff.
Hey @arturol76,
We’ve actually changed the way we store persistent data, so now rather than keep it in /mnt/data/resin-data/, we create a named volume which can be accessed at /mnt/data/docker/volumes/<APP ID>_resin-data/_data. You can use balena volume ls to see all named volumes.
You mean the same issue as @arturol76? Have you tried looking in /mnt/data/docker/volumes/<APP ID>_resin-data/_data, as @zwalchuk recommends? Your data should be there.
@lv82 I currently don’t have enough context to help you with why we don’t support them now, but with regards to future support of bind mounts, I’d suggest you subscribe to the issue at https://github.com/resin-io/resin-supervisor/issues/643, so that you can get live updates of our progress there.
Hi, Thanks for reaching out to us.
This thread is pretty long so I would like you to specify what you are trying to achieve , how you are doing it and what fails.
Regards
Thomas