There is a docker some-image:v1
that if it is run with docker run
, the URL to use for curl request would be: http://localhost/endpoint
If the same image along with another version are spin up with docker compose up
with the following yaml file:
<code>version: "3.9"
services:
service-a:
image: some-image:v1
service-b:
image: some-image:v2
</code>
<code>version: "3.9"
services:
service-a:
image: some-image:v1
service-b:
image: some-image:v2
</code>
version: "3.9"
services:
service-a:
image: some-image:v1
service-b:
image: some-image:v2
what is the URL of service-a to send a curl request?!