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
This commit is contained in:
Danny Avila 2023-08-10 13:20:06 -04:00 committed by GitHub
parent e11815833f
commit 91d32fa4f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -38,8 +38,8 @@ services:
restart: always restart: always
mongodb: mongodb:
container_name: chat-mongodb container_name: chat-mongodb
ports: # ports: # Uncomment this to access mongodb from outside docker, not safe in deployment
- 27018:27017 # - 27018:27017
image: mongo image: mongo
restart: always restart: always
volumes: volumes:

View file

@ -46,8 +46,8 @@ services:
- ./images:/app/client/public/images - ./images:/app/client/public/images
mongodb: mongodb:
container_name: chat-mongodb container_name: chat-mongodb
ports: # ports: # Uncomment this to access mongodb from outside docker, not safe in deployment
- 27018:27017 # - 27018:27017
image: mongo image: mongo
restart: always restart: always
volumes: volumes: