Make mongo & mongo-express safer

This commit is contained in:
Vishal Doshi
2023-03-20 15:28:01 +05:30
committed by GitHub
parent 7bd1d77be1
commit 6fb8b17fe3
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -132,4 +132,6 @@ dmypy.json
config/config.yml config/config.yml
config/config.env config/config.env
docker-compose.dev.yml docker-compose.dev.yml
mongodb/
+2 -2
View File
@@ -6,7 +6,7 @@ services:
image: mongo:latest image: mongo:latest
restart: always restart: always
ports: ports:
- ${MONGODB_PORT:-27017}:${MONGODB_PORT:-27017} - 127.0.0.1:${MONGODB_PORT:-27017}:${MONGODB_PORT:-27017}
volumes: volumes:
- ${MONGODB_PATH:-./mongodb}:/data/db - ${MONGODB_PATH:-./mongodb}:/data/db
# TODO: add auth # TODO: add auth
@@ -26,7 +26,7 @@ services:
image: mongo-express:latest image: mongo-express:latest
restart: always restart: always
ports: ports:
- ${MONGO_EXPRESS_PORT:-8081}:${MONGO_EXPRESS_PORT:-8081} - 127.0.0.1:${MONGO_EXPRESS_PORT:-8081}:${MONGO_EXPRESS_PORT:-8081}
environment: environment:
- ME_CONFIG_MONGODB_SERVER=mongo - ME_CONFIG_MONGODB_SERVER=mongo
- ME_CONFIG_MONGODB_PORT=${MONGODB_PORT:-27017} - ME_CONFIG_MONGODB_PORT=${MONGODB_PORT:-27017}