From ae80ff172e0089dc387fc0d38d5413856a94aeff Mon Sep 17 00:00:00 2001 From: cheetah Date: Tue, 31 Mar 2020 05:54:51 +0200 Subject: [PATCH] Update docker-compose.yml --- docker-compose.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 62855a4..15c8fe0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,6 +5,9 @@ services: image: "mongo:latest" restart: unless-stopped hostname: mongodb + environment: + - MONGO_INITDB_ROOT_USERNAME=admin + - MONGO_INITDB_ROOT_PASSWORD=admin ports: - "127.0.0.1:27017:27017" volumes: