Hi all.
Very basic question, I guess. But I am not able to share a volume between 2 containers on docker-compose. I can only share it if the containers run in the same stack.
My escenario is
NPM stack with nginx-proxy-manager (among others) container and logs volume mounted host:container as:
[…]
volumes
- /cache/docker/nginx-proxy-manager/logs:/data/logs
[…]
Crowdsec stack with crowdsec container (among others), in which I want to share the logs volume from NPM in order to parse them.
The host folder I want the logs to be mounted in read-only is:
- /cache/docker/crowdsec/logs/nginx-proxy-manager
The host folder I want to link the files from is the defined in NPM stack:
- /cache/docker/nginx-proxy-manager/logs
Thanks in advance.