security: configured secure mongo pass
This commit is contained in:
@@ -2,8 +2,12 @@
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
mongo:
|
||||
util-bills-mongo:
|
||||
image: mongo:4.4.27
|
||||
ulimits:
|
||||
nofile:
|
||||
soft: 64000
|
||||
hard: 64000
|
||||
restart: always
|
||||
ports:
|
||||
- 27017:27017
|
||||
@@ -12,13 +16,13 @@ services:
|
||||
MONGO_INITDB_ROOT_PASSWORD: example
|
||||
volumes:
|
||||
- ./mongo-volume:/data/db
|
||||
mongo-express:
|
||||
util-bills-mongo-express:
|
||||
image: mongo-express
|
||||
restart: always
|
||||
ports:
|
||||
- 8081:8081
|
||||
environment:
|
||||
ME_CONFIG_MONGODB_ADMINUSERNAME: root
|
||||
ME_CONFIG_MONGODB_ADMINPASSWORD: example
|
||||
ME_CONFIG_MONGODB_URL: mongodb://root:example@mongo:27017/
|
||||
ME_CONFIG_MONGODB_ADMINPASSWORD: HjktJCPWMBtM1ACrDaw7
|
||||
ME_CONFIG_MONGODB_URL: mongodb://root:HjktJCPWMBtM1ACrDaw7@util-bills-mongo:27017/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user