Skip to content

kartAI/CADAiD-webapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hi future developer!

Here is a guide on how to run and build, and scale this project!

Run and build

First, you need a image for the website.

navigate to website folder in termial

cd website

then build docker image

docker build -t website .

Ops remember to change the image name in the docker-compose file if you name it something else then website

navigate back to root and run

doceker compose up

Now you are running on localhost:5000 (frontend) and localhost:5001 (backend)

Deploying

Docker Swarm or Kubernetes

Scaling

To scale the backend(fast_api) you need to add

deploy: 
  replicas: x

where x is the amount of instances of the service are running across the cluster. Place this under cad-aid-api in docker compose. a reverse proxy, like nginx, is needed to make this work. This support many services/machines to access access the same port.

Future thoughts

Deployment thoughts: Add the containers in kubernetes or docker swarn. might be fun to test more microservice architecture, like putting AI models in different docker containers.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published