TODO
- Edit the machine
/etc/hosts
file to add docker containers hosts
sudo nano /etc/hosts
# Add those lines
> 127.0.0.1 mongo1
> 127.0.0.1 mongo2
> 127.0.0.1 mongo3
- Run the docker-compose file
docker-compose up
- Run the application
npm start
TODO
/etc/hosts
file to add docker containers hostssudo nano /etc/hosts
# Add those lines
> 127.0.0.1 mongo1
> 127.0.0.1 mongo2
> 127.0.0.1 mongo3
docker-compose up
npm start