• Get Started
  • Local Setup
  • Packages Flow
  • Contribute

First Lets Clone teh 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 docker-compose file as folows
 
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