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 upAnd I can see that it is running:
my_app_1 | * ListeningBut 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:3001How can I access my Docker service?
81 Answer
docker inspect container_name/hash | grep Address