The docker-compose ps command does not display the ports of the container. What may be the possible reason? this is my docker-compose.yml file
web:
build: .
#command: docker exec -p 4000:4000 mix phoenix.new helloworld3
volumes:
- .:/app
ports:
- “4000:4000”
user:~/composeexample/example1$ docker-compose ps
Name Command State Ports
test1 /bin/bash Up
Can we use a docker command inside the docker-compose file(as in the comment)? I am still new to docker so any help will be appreciated. Thank you.