don’t forget to expose the port!

Untitled

not exposed!

Untitled

# bind container port 6379 to host port 6000
docker run -p6000:6379 redis

Untitled

Untitled

creating network

use case: connect mongo-express (mongo GUI) to mongo

→ run mongo and mongo-express in the same network

Node can connect to exposed port on mongo: 27017

Local browser can connect to export port on mongo-express UI on 8081

docker network ls