Hey everybody,
I'm currently trying to allow the devs at my company to run something like dagger call postgresql --volume <some local path> up using a custom function that create a postgres container and serve it as a Service, so they can connect locally to work. The idea is to have a similar behavior than a docker-compose that mount a host folder in the container and persist the data across multiple restart. Unfortunately, when using the with_mounted_directory() function, it just copy the directory from the host system to the container and doesn't sync the data back. I saw there is a export function that allow to export the data directory back to the host system but as I serve the container as a service, I don't see how I can use the export function to export the data.
Is it an intended use of Dagger or am I trying to do something that dagger is absolutely not make for? Is it possible to do it now, and if not is it in the plan of dagger to allow to mount bidirectionally directories between the host and a container in the future?
Thank you!