U kunt command
. gebruiken optie van docker-compose.yml
mongodb:
container_name: mongodb
image: mongo:3.2
command: mongod --httpinterface
volumes:
- mongo_data:/data/db
ports:
- "57017:27017"
restart: always