I try to run MongoDB and Mongo-express by Docker-compose. I use following config:
version: \'3\' services: mongo: image: mongo environment:
The simplest way is run docker-compose up -d in directory with docker-compose.yml:
docker-compose up -d
version: "3" services: mongo: image: "mongo:3-stretch" mongo-express: image: "mongo-express:latest" ports: - "8081:8081"
And then open http://localhost:8081/ in your browser.