diff --git a/deploy-compose.yml b/deploy-compose.yml index 869f987d6..bc0cbd23d 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 a7de0a515..79f41af5f 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: