浏览代码

Merge pull request #2612 from ViliusS/remove-deprecated-vars

Remove not used mongo-express env. variables
Tianon Gravi 2 月之前
父节点
当前提交
2ccbc4396a
共有 1 个文件被更改,包括 3 次插入6 次删除
  1. 3 6
      mongo/compose.yaml

+ 3 - 6
mongo/compose.yaml

@@ -1,7 +1,4 @@
-# Use root/example as user/password credentials
-
 services:
 services:
-
   mongo:
   mongo:
     image: mongo
     image: mongo
     restart: always
     restart: always
@@ -15,7 +12,7 @@ services:
     ports:
     ports:
       - 8081:8081
       - 8081:8081
     environment:
     environment:
-      ME_CONFIG_MONGODB_ADMINUSERNAME: root
-      ME_CONFIG_MONGODB_ADMINPASSWORD: example
       ME_CONFIG_MONGODB_URL: mongodb://root:example@mongo:27017/
       ME_CONFIG_MONGODB_URL: mongodb://root:example@mongo:27017/
-      ME_CONFIG_BASICAUTH: false
+      ME_CONFIG_BASICAUTH_ENABLED: true
+      ME_CONFIG_BASICAUTH_USERNAME: mongoexpressuser
+      ME_CONFIG_BASICAUTH_PASSWORD: mongoexpresspass