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:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user