2 Answers
- Newest
- Most votes
- Most comments
0
Hello.
Is it possible to communicate when accessing with "localhost:6000"?
0
The problem I had is actually with the service within the container (was unresponsive), not the inter-container communication. I sanity tested with a different viable service and was able to reach from one container to another using the private domain as stated in the documentation.
Just to be clear, for a deployment foo
with two containers A and B, with container B listening on port 6000, A is able to make http requests to B using host foo.service.local:6000
.
answered 8 months ago
Relevant content
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
No, using localhost:6000 does not work.
Thanks for the reply.
It seems to be able to communicate with "localhost:<port number>".
https://repost.aws/ja/questions/QUoYzGuzJBSE-0iWuBeliLaw/communication-between-lightsail-containers
How are Lightsail containers configured?