Hi there - looking at the docs (Docker run reference | Docker Documentation), it seems you should be able to use ipc: "container:containerA" in your docker compose for containerB. Where does it say that you must use the container id only, or have to substitute container to service?
Alternatively, does ipc: "host" satisfy your use case?