SURAJTHEGREAT / dockerpymongowebframework

To containerize python application using docker
https://pythontutorials.quora.com
0 stars 0 forks source link

Mongodb which is backend has internet access #3

Closed SURAJTHEGREAT closed 6 years ago

SURAJTHEGREAT commented 6 years ago

From the compose file , could observe that mongodb has internet access This is a serious security issue as anybody can view the data Restrict incoming and outgoing traffic

SURAJTHEGREAT commented 6 years ago

Thanks for pointing out. Help on restrict internet access - from this could see that docker network create --internal --subnet 10.1.1.0/24 no-internet - seems to be fix. The equivalent is created in docker-compose file after inspecting this created network