From 91d32fa4f602524a47fc1a93123d0bcb09d6bd20 Mon Sep 17 00:00:00 2001 From: Danny Avila <110412045+danny-avila@users.noreply.github.com> Date: Thu, 10 Aug 2023 13:20:06 -0400 Subject: [PATCH] chore: un-expose mongodb ports in compose files (#786) * chore(deploy-compose.yml): comment out mongodb port mapping for safety in deployment chore(deploy-compose.yml): add bind_ip option to mongodb command to allow access from outside docker chore(docker-compose.yml): comment out mongodb port mapping for safety in deployment chore(docker-compose.yml): add bind_ip option to mongodb command to allow access from outside docker * fix(deploy-compose.yml): remove bind_ip option from mongod command fix(docker-compose.yml): remove bind_ip option from mongod command --- deploy-compose.yml | 4 ++-- docker-compose.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy-compose.yml b/deploy-compose.yml index 869f987d6e..bc0cbd23d5 100644 --- a/deploy-compose.yml +++ b/deploy-compose.yml @@ -38,8 +38,8 @@ services: restart: always mongodb: container_name: chat-mongodb - ports: - - 27018:27017 + # ports: # Uncomment this to access mongodb from outside docker, not safe in deployment + # - 27018:27017 image: mongo restart: always volumes: diff --git a/docker-compose.yml b/docker-compose.yml index a7de0a515a..79f41af5fc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -46,8 +46,8 @@ services: - ./images:/app/client/public/images mongodb: container_name: chat-mongodb - ports: - - 27018:27017 + # ports: # Uncomment this to access mongodb from outside docker, not safe in deployment + # - 27018:27017 image: mongo restart: always volumes: