Repost from kbin directly since federation is being weird.
I use a similar setup with dockerized NPM. I see 2 things in this example that I do differently.
Make sure to explicitly call out external: true in the network definition. I’m not sure what compose will do if you don’t. But I wouldn’t want it making any new proxy networks accidentally.
proxy should be in the networks list for each container you want accessible from NPM. I don’t believe just defining it in the compose adds all containers to that automatically.
Repost from kbin directly since federation is being weird.
I use a similar setup with dockerized NPM. I see 2 things in this example that I do differently.
external: true
in the network definition. I’m not sure what compose will do if you don’t. But I wouldn’t want it making any new proxy networks accidentally.networks
list for each container you want accessible from NPM. I don’t believe just defining it in the compose adds all containers to that automatically.