i am new to Nomad and have an application which consists of 3 middleware docker container and 3 docker containers which are my application. I need to have the middleware started before my application starts. I have added the lifecycle block for the middleware tasks like this:
lifecycle { hook = "prestart" sidecar = true }
But my application cannot connect to the middleware when starting.