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: