/shinzo

Integrated genAI web app to query GPT and Stable Diffusion and manage generated content.

Primary LanguageTypeScript

Shinzo GenAI Content Management App

The Shinzo GenAI Content Management App is an integrated web application to query genAI models like GPT and Stable Diffusion and manage the multi-modal generated content. This application can be deployed locally in a single command with proper configuration and setup. The code is provided as-is with no guarantees about functionality or future support.

Zombie Halloween Party Voxel Mansion Business Questions

Prerequisites

Docker Deployment

DB Administration

Local Deployment

Env Configs

Fill out env files with given variables:

  • .env
  • backend/.env
  • frontend/.env
  • sd-generator/.env

Dockerized Deployment

Add Database

Follow steps in db/README.md to deploy a new postgres database instance in the Ubuntu server.

Add Volumes

Follow steps in sd-generator/README.md to create volume sources.

Prep diffusers

A custom fork of diffusers is used for the stable diffusion generator, so follow the steps in sd-generator/README.md to copy this into sd-generator/.

Deploy all services

docker-compose up --build -d dbmate up

Bring down all services

docker-compose down

Deploy specific service

docker-compose up --build -d <backend|frontend|sd-generator>...

Deploy SD generator without GPU

sudo docker-compose -f compose.no-gpu.yml up -d --build <backend|frontend|sd-generator>...

Configure HA Proxy

For final setup to a public domain, please follow the steps in haproxy/README.md and modify the URLs as needed for your domain.

Troubleshooting

If you have docker containers that restart after your server is restarted, confirm whether HA Proxy is also running still. It's likely that you need to restart the HA Proxy service with sudo haproxy -D -f haproxy.cfg before you will be able to access the service from the web.