Skip to content

Commit

Permalink
Update docker-compose connection uri and remove auto-stop to deriver …
Browse files Browse the repository at this point in the history
…process
  • Loading branch information
VVoruganti committed Mar 17, 2024
1 parent 3f1a1f7 commit a78c365
Show file tree
Hide file tree
Showing 5 changed files with 317 additions and 291 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ alternatively if you are using poetry run:
poetry add honcho-ai
```

checkout the [example folder](./example/) for examples of how to use the sdk
checkout the [SDK Reference](https://api.python.honcho.dev) for a detailed
look at the different methods and how to use them.

Also, check out the[example folder](./example/) for examples of how to use the sdk

#### Use Locally

Expand Down
4 changes: 3 additions & 1 deletion api/docker-compose.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
- .:/app
environment:
- DATABASE_TYPE=postgres
- CONNECTION_URI=postgresql://testuser:testpwd@database:5432/honcho
- CONNECTION_URI=postgresql+psycopg://testuser:testpwd@database:5432/honcho
- OPENAI_API_KEY=[YOUR_OPENAI_API_KEY]
- OPENTELEMETRY_ENABLED=false
- SENTRY_ENABLED=false
Expand All @@ -28,6 +28,8 @@ services:
database:
image: ankane/pgvector
restart: always
ports:
- 5432:5432
environment:
- POSTGRES_DB=honcho
- POSTGRES_USER=testuser
Expand Down
10 changes: 10 additions & 0 deletions api/fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ kill_timeout = "5s"
api = "python -m uvicorn src.main:app --host 0.0.0.0 --port 8000"
deriver = "python -m src.harvester"

[[services]]
auto_stop_machines = false
auto_start_machines = true
min_machines_running = 1
processes = ["deriver"]
protocol = "tcp"
[services.concurrency]
hard_limit = 250
soft_limit = 200

[http_service]
internal_port = 8000
auto_stop_machines = false
Expand Down
Loading

0 comments on commit a78c365

Please sign in to comment.