DEV Community

Discussion on: Docker-compose an express and mongo App

Collapse
 
jonnysmith1981 profile image
Jonathan Smith

Depending on your platform (I'm using CentOS), setting the ports property in the mongo section of the docker-compose.yml file will also open port 27017 on your firewall, which you may not want to do.