Vision: Create Application in almost all languages and all combinations like node react, node angular, .net vue ...and so on
First Lets Clone the backend and frontend Repositories
git clone https://github.com/Smart-code-hub/Smartcodehub-api
git clone https://github.com/Smart-code-hub/Smartcodehub-Webapp
Once cloned we can create the docker-compose file as follows
version: '3'
services:
api:
container_name: Smartcodehub-api
restart: always
build: ./Smartcodehub-api/.
ports:
- "3666:3666"
volumes:
- .:/app
links:
- Smartcodehub-db
networks:
- Smartcodehub
app:
container_name: Smartcodehub-webapp
restart: always
build: ./Smartcodehub-webapp/.
ports:
- "3667:80"
volumes:
- .:/app
networks:
- Smartcodehub
Smartcodehub-db:
container_name: Smartcodehub-db
image: mongo
ports:
- "27018:27017"
networks:
- Smartcodehub
networks:
Smartcodehub:
Just the final command
docker-compose up