PERN
MongoDB Express React Node
Dependencies
- Docker
- npm
- Node js
- IDE (preferably VSCode with TSLint)
Commands
Deploy all the containers in the background
docker-compose up -d
Deploy all the containers with live log output
docker-compose up
Stop and remove containers
docker-compose down
Notes
Depending on what version of docker you have the IP addresses for your containers may differ
- Docker toolbox (legacy docker) uses the ip
192.168.99.100
- Regular Docker uses the ip
127.0.0.1
Docker toolbox volume mounting issues:
-
If you are using Docker toolbox with Oracle VM Virtualbox, then you will need to add the following folders to the shared folder:
- Backend
- Frontend
- Database/data
- Database/initdb