
Docker is a Tool that enables you to containerize your dev environment and by so helps you be more productive to focuses more on the code and stop ...
For further actions, you may consider blocking this person and/or reporting abuse
Exactly what I was looking for, thanks!
Maybe I missed something, but I think you forgot to mention that you need to fetch the items from the DB to display them in the index route.
Something like that:
Glad it helped and you're absolutely correct. I'll fix it as soon as I get time
Depending on your platform (I'm using CentOS), setting the ports property in the
mongo
section of the docker-compose.yml file will also open port 27017 on your firewall, which you may not want to do.hey Enes K. Thanks for the nice comment.
make a file
package.json
in your project, copy/past bellow json objectand run npm install to get all the dependences.
in my case I used
3000:3000
in my docker-compose yaml port.Also, the data storage did not persist. I added extra setup in the yaml file.
Nice article, this might be worth a look github.com/WMRamadan/docker-compos...