security: configured secure mongo pass

This commit is contained in:
Knee Cola
2025-11-24 22:17:39 +01:00
parent a37e0dc7c7
commit 7cefe54eb0
3 changed files with 19 additions and 11 deletions

View File

@@ -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/