My docker-compose.yml looks like this:
my_app:
build: .
net: host
command: bin/server
ports:
- "3001:3001"
I start the service like this:
docker-compose up
And I can see that it is running:
my_app_1 | * Listening
But I can't figure out how to access it. None of these work:
localhost:3001
docker-machine:3001
127.0.0.1:3001
0.0.0.0:3001
How can I access my Docker service?
docker inspect container_name/hash | grep Address
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With