Skip to content

Commit

Permalink
Make mongo & mongo-express safer
Browse files Browse the repository at this point in the history
  • Loading branch information
vgurud committed Mar 20, 2023
1 parent e6b3a73 commit 6e03069
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,6 @@ dmypy.json
config/config.yml
config/config.env

docker-compose.dev.yml
docker-compose.dev.yml

mongodb/
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
image: mongo:latest
restart: always
ports:
- ${MONGODB_PORT:-27017}:${MONGODB_PORT:-27017}
- 127.0.0.1:${MONGODB_PORT:-27017}:${MONGODB_PORT:-27017}
volumes:
- ${MONGODB_PATH:-./mongodb}:/data/db
# TODO: add auth
Expand All @@ -26,7 +26,7 @@ services:
image: mongo-express:latest
restart: always
ports:
- ${MONGO_EXPRESS_PORT:-8081}:${MONGO_EXPRESS_PORT:-8081}
- 127.0.0.1:${MONGO_EXPRESS_PORT:-8081}:${MONGO_EXPRESS_PORT:-8081}
environment:
- ME_CONFIG_MONGODB_SERVER=mongo
- ME_CONFIG_MONGODB_PORT=${MONGODB_PORT:-27017}
Expand Down

0 comments on commit 6e03069

Please sign in to comment.