Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supabase Self-Host Implementation #8

Open
wants to merge 22 commits into
base: main
Choose a base branch
from

Conversation

thihanmoekyaw
Copy link

This PR is part of the effort to have a self hosted version of Illinois Chat, and implementation of self-hosted supabase instance.

Key Changes

Environment Variables Update:

  • Modified FLASK_PORT in .env.template from 8000 to 8188.
  • Updated deprecated SQLITE_DB_NAME comment.
  • Added environment variables for Supabase and PostgreSQL in .env.template

Supabase Submodule:

  • Added Supabase as a submodule to streamline cloning and setup.
  • Added docker-compose.override.yml to enable volume mounting for database migrations for supabase docker image

Other:

  • Added init.sh script to streamline setup
  • Expanded the README.md to reflect the new changes
  • Added psycopg2-binary in the requirements file to prevent error in flask-app build

- Add healthcheck configuration for Flask app container
- Create init.sh script to start both Supabase and app services
- Update README.md with new Docker deployment instructions

Technical details:
- Added healthcheck endpoint monitoring for Flask container
- Created bash script to run both docker-compose files
- Added documentation for running services simultaneously
- Add database migrations
- Create docker-compose override for migrations
- Update init script for Supabase initialization
- Configure Docker networks for services
@thihanmoekyaw thihanmoekyaw self-assigned this Nov 12, 2024
@KastanDay
Copy link
Member

Maybe raise an error if multiple SQL providers are available. Or offer an ENV var like SQL=postgres/sqlite/supabase

@caii-ncsa-coolify-app
Copy link

caii-ncsa-coolify-app bot commented Nov 25, 2024

The preview deployment failed. 🔴

Open Build Logs

Last updated at: 2024-12-17 22:50:17 CET

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.

2 participants