Add authentication mecanisme and secure database.
This commit is contained in:
@@ -4,4 +4,11 @@ services:
|
||||
container_name: "mongo"
|
||||
image: "mongo:latest"
|
||||
ports:
|
||||
- "27017:27017"
|
||||
- "27017:27017"
|
||||
environment:
|
||||
- "MONGO_INITDB_DATABASE=express-test"
|
||||
- "MONGO_INITDB_ROOT_USERNAME=god"
|
||||
- "MONGO_INITDB_ROOT_PASSWORD=P@ssword"
|
||||
volumes:
|
||||
- "./mongodb/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d/:ro"
|
||||
- "./mongodb/data:/data/db"
|
||||
Reference in New Issue
Block a user