Skip to content

Commit aaa4c54

Browse files
committed
add chroma
1 parent 6ee4717 commit aaa4c54

File tree

5 files changed

+59
-1
lines changed

5 files changed

+59
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
.DS_Store
1+
.DS_Store
2+
.tmp

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Monorepo collection of fly.toml and Dockerfile etc collections for deployment.
55
## Playbooks
66

77
- [Actual](https://github.com/actualbudget/actual)
8+
- [Chroma](https://github.com/chroma-core/chroma)
89
- [Dragonfly](https://www.dragonflydb.io)
910
- [Jupyter](https://jupyter.org)
1011
- [Maybe](https://github.com/maybe-finance/maybe)

chroma/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# chroma on Fly.io
2+
3+
[Chroma](https://github.com/chroma-core/chroma) is an AI-native open-source embedding database.
4+
5+
## Deploying
6+
7+
1. Launch a new Fly app: `fly launch`
8+
2. Enjoy!

chroma/config.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
########################
2+
# HTTP server settings #
3+
########################
4+
open_telemetry:
5+
service_name: "chroma"
6+
endpoint: "http://otel-collector:4317"
7+
port: 8000
8+
listen_address: "0.0.0.0"
9+
max_payload_size_bytes: 41943040
10+
cors_allow_origins: ["*"]
11+
12+
####################
13+
# General settings #
14+
####################
15+
# persist_path: "/data" # this doesn't work yet?
16+
allow_reset: false # defaults to false
17+
sqlitedb:
18+
hash_type: "md5" # or "sha256"
19+
migration_mode: "apply" # or "validate"
20+
sysdb:
21+
sqlite:
22+
log_topic_namespace: "default"
23+
log_tenant: "default"

chroma/fly.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
app = 'chroma'
2+
primary_region = 'sjc'
3+
4+
[build]
5+
image = 'chromadb/chroma'
6+
7+
[[mounts]]
8+
source = 'chroma_data'
9+
destination = '/chroma/chroma'
10+
initial_size = '1g'
11+
12+
[http_service]
13+
internal_port = 8000
14+
force_https = true
15+
auto_stop_machines = 'stop'
16+
auto_start_machines = true
17+
min_machines_running = 0
18+
19+
[[files]]
20+
guest_path = '/config.yaml'
21+
local_path = 'config.yaml'
22+
23+
[[vm]]
24+
memory = '256mb'
25+
cpus = 1

0 commit comments

Comments
 (0)