this post was submitted on 23 Jan 2024
8 points (100.0% liked)
Docker
1100 readers
2 users here now
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Use a shared on-disk volume mount, i.e.:
In both compose files.
I use a similar mechanism to enable my media acquisition stack to grab completed files and store them in their permanent location.
Edit: you can just use the same volume in both containers at the same time, but you'd typically use an NFS mount or something if / when you try and scale this out. You probably just got the volume definition a little off (or need to create it outside both containers definitions and use it there)