On 2019-06-19 18:05, Dominik Matis wrote:
Hi,
I have a situation in which I have React app in container, which is exposed
to port 3000 to be able to access it from host and I also have another
container for Express API server, which is listening on port 8000, but I
don't want it to be accessible from host. Is it somehow possible to run
these two containers simultaneously in one pod and have exposed only port
3000, so we can see the page? Thanks for a reply.
Best regards,
Dominik Matis
_______________________________________________
Podman mailing list -- podman(a)lists.podman.io
To unsubscribe send an email to podman-leave(a)lists.podman.io
This should work fine if you only forward Port 3000 when you create
the pod. The other container can bind to 8000 inside the pod and the
two containers can communicate like that, on localhost, while 3000
will be available outside the pod for external connection.
Thanks,
Matt Heon