Forwarding ports of other docker-compose services #26051
-
I’m attempting to set up a development environment for a Node.js library that interfaces with RabbitMQ, the configuration for which is in the spoiler below. Configuration filesI have a simple Dockerfile:
A
And finally a
This works wonderfully and the However, the RabbitMQ server exposes a helpful UI at port 15672 which I would like to be able to see, but I don’t know if it’s possible for me to get at it. I can add Is there any way to achieve this? P.S. I’ve been eagerly awaiting Codespaces. I’m a huge fan of GitPod and this solution seems absolutely wonderful! Fantastic work; I can’t wait to get using it properly and start submitting feedback! ❤️ |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can resolve this with a network trick - we’re going to update the samples at vscode-dev-containers with this. Try adding the following to your main service:
That should make rabbit MQ available on localhost so the forwarding works properly. |
Beta Was this translation helpful? Give feedback.
-
Fantastic! Works a charm. Thanks for such a speedy reply, @Chuxel, and thank you for doing amazing work with Codespaces! |
Beta Was this translation helpful? Give feedback.
You can resolve this with a network trick - we’re going to update the samples at vscode-dev-containers with this.
Try adding the following to your main service:
That should make rabbit MQ available on localhost so the forwarding works properly.