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.
Fill out env files with given variables:
.env
backend/.env
frontend/.env
sd-generator/.env
Follow steps in db/README.md to deploy a new postgres
database instance in the Ubuntu server.
Follow steps in sd-generator/README.md to create volume sources.
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/
.
docker-compose up --build -d
dbmate up
docker-compose down
docker-compose up --build -d <backend|frontend|sd-generator>...
sudo docker-compose -f compose.no-gpu.yml up -d --build <backend|frontend|sd-generator>...
For final setup to a public domain, please follow the steps in haproxy/README.md and modify the URLs as needed for your domain.
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.