atlanticwave-sdx / sdx-controller

Central Controller for AtlanticWave SDX.
https://www.atlanticwave-sdx.net
MIT License
2 stars 3 forks source link

Use Docker Compose network for MongoDB #147

Closed sajith closed 1 year ago

sajith commented 1 year ago

In docker-compse.yml, we start MongoDB like so:

https://github.com/atlanticwave-sdx/sdx-controller/blob/22ebf5d31904a8d88c161ef31d83d1c4989d3006/docker-compose.yml#L5-L9

Further down, the sdx-controller actually access MongoDB via host port:

https://github.com/atlanticwave-sdx/sdx-controller/blob/22ebf5d31904a8d88c161ef31d83d1c4989d3006/docker-compose.yml#L27

We probably don't have to do that, because compose sets up a single network to which each of the containers join.