Skip to content

Deploy the Bublik AI assistant - #79

Open
okt-limonikas wants to merge 1 commit into
ts-factory:mainfrom
okt-limonikas:ai-chat
Open

Deploy the Bublik AI assistant#79
okt-limonikas wants to merge 1 commit into
ts-factory:mainfrom
okt-limonikas:ai-chat

Conversation

@okt-limonikas

@okt-limonikas okt-limonikas commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

Update the Docker deployment for streaming AI chat, provider credentials, file
rendering, and S3-compatible generated-file storage. Bundle a loopback-only
SeaweedFS service and include the corresponding administrator documentation.

Related

Changes

  • Run Django with Gunicorn and uvicorn_worker.UvicornWorker against the ASGI app.
  • Run the development server with Uvicorn.
  • Disable Nginx buffering and caching for /api/v2/chat.
  • Load .env for services that need AI provider credentials.
  • Install native libraries and fonts needed for document/PDF generation.
  • Add Redis URL, public Bublik URL, ASGI, S3, and file-size settings.
  • Add chrislusf/seaweedfs:4.40 with loopback binding and persistent storage.
  • Document provider configuration, architecture, storage, deployment, backup,
    verification, security, and troubleshooting.
  • Update backend, frontend, and release-documentation revisions.

New Settings

Variable Default
S3_ENDPOINT_URL http://127.0.0.1:8333
S3_PUBLIC_ENDPOINT_URL empty
S3_ACCESS_KEY bublik
S3_SECRET_KEY bublik-secret-key
S3_BUCKET bublik-chat-files
S3_REGION us-east-1
S3_PRESIGN_EXPIRY 300
CHAT_FILE_MAX_SIZE 20971520
BUBLIK_DOCKER_SEAWEEDFS_S3_PORT 8333

Provider credentials use deployment-specific uppercase AI_* variables, for
example AI_OPENAI_API_KEY and AI_ANTHROPIC_API_KEY.

Upgrade Notes

  • Back up PostgreSQL and generated-file storage before updating.
  • The normal database backup does not include the seaweedfs_data named volume.
  • Change the bundled object-storage credentials if its endpoint is exposed.
  • Restricted-network deployments must transfer the SeaweedFS image.
  • The Django entrypoint applies the new chat migrations automatically.

@okt-limonikas okt-limonikas self-assigned this Jul 20, 2026
Signed-off-by: Danil Kostromin <danil.kostromin@icloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant