Skip to content

Instantly share code, notes, and snippets.

@sdan
Created April 29, 2023 03:47
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sdan/9fd34bf561e98a798ec3ee55231bfb36 to your computer and use it in GitHub Desktop.
Save sdan/9fd34bf561e98a798ec3ee55231bfb36 to your computer and use it in GitHub Desktop.
Running Chroma on Railway (no permanence)
1. Fork https://github.com/chroma-core/chroma ; for some reason you can't deploy images on Railway
Ensure you add PORT=8000 env var in Railway
2. Client side:
Railway doesn't allow HTTP connections so you'll need to open up SSL connections on the client side like so(for some reason this isn't properly documented):
# Set up ChromaDB client
client = chromadb.Client(Settings(
anonymized_telemetry=False,
chroma_api_impl="rest",
chroma_server_host=os.getenv("CHROMA_SERVER_HOST", "localhost"),
chroma_server_ssl_enabled=True,
chroma_server_http_port=443,
chroma_db_impl="duckdb+parquet",
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment