Skip to content

Commit

Permalink
Update weaviate deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
tiadams committed Feb 5, 2025
1 parent fd5c396 commit 9383417
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@


def connect_to_remote_weaviate_repository():
weaviate_url = os.getenv("WEAVIATE_URL", "http://weaviate:8080")
weaviate_url = os.getenv("WEAVIATE_URL", "localhost")
retries = 5
for i in range(retries):
try:
return WeaviateRepository(mode="remote", path=weaviate_url)
return WeaviateRepository(mode="remote", path=weaviate_url, http_port=8080, port=8080)
except Exception as e:
logger.info(f"Attempt {i + 1} to connect to {weaviate_url} failed with error: {e}")
time.sleep(5)
Expand Down
5 changes: 3 additions & 2 deletions docker-compose.local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ services:
- weaviate

weaviate:
image: cr.weaviate.io/semitechnologies/weaviate:1.24.20
image: cr.weaviate.io/semitechnologies/weaviate:1.28.4
ports:
- "8080:8080"
- "50051:50051"
volumes:
- weaviate_data:/var/lib/weaviate

-
volumes:

weaviate_data:
Expand Down
16 changes: 16 additions & 0 deletions docker-compose.weaviate-only.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: "3.12"

services:

weaviate:
image: cr.weaviate.io/semitechnologies/weaviate:1.28.4
ports:
- "8080:8080"
- "50051:50051"
volumes:
- weaviate_data:/var/lib/weaviate

volumes:

weaviate_data:
driver: local

0 comments on commit 9383417

Please sign in to comment.