diff --git a/.gitignore b/.gitignore index b7a2e29..42d3d90 100644 --- a/.gitignore +++ b/.gitignore @@ -132,4 +132,6 @@ dmypy.json config/config.yml config/config.env -docker-compose.dev.yml \ No newline at end of file +docker-compose.dev.yml + +mongodb/ \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 8ccc66a..e8dee97 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 @@ -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}