I used Docker compose tool to run 4 services from different containers in just one command, and volumes to store data outside the container or share data between containers. Stack : Nodejs-Express/Python-Flask/React/Vue
- How to create nodejs/python/react/vue Docker containers.
- How to store data outside of the container.
- How to define your application stack in a file using Docker Compose to help define multi-container applications.(ideal for microservice arch.)
Have Docker installed on your machine. get-docker
docker-compose pull
docker-compose up
docker images
docker –version
docker build -t name:version .
docker run -p 3000:3001
docker-compose logs -f
docker ps -a
Clone this repository then navigate into the directory:
*make sure you have Docker running on your system.
docker-compose pull
docker-compose up
Then, you will be able to visit the projects using any browser through these ports: http://localhost:3000 ,3001, 3002, 5000.
React Image
docker pull merthaddad/reactjs_project
Nodejs Image
docker pull merthaddad/nodejs_project
Vue Image
docker pull merthaddad/vue_project
Python Image
docker pull merthaddad/python_project