A simple form submission in ReactJS - NodeJS - MongoDB - Docker
2 Tabs Single page application
Page one
Page two
docker-compose up
this should bring up 3 containers,
NodeJS service
ReactJS client
mongodb server
node server on http://localhost:8080
react development server on http://localhost:3000/public
The docker-compose
you can start the projects within their directory with common node / yarn [REQUIRES mongo DB default installation and root password as shown below]
MONGO_INITDB_ROOT_USERNAME=root
MONGO_INITDB_ROOT_PASSWORD=m0ng0passw
in each project
yarn install
yarn start
docker-compose -f docker-compose.production.yml build --force-rm
docker-compose -f docker-compose.production.yml up