Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (67 loc) · 1.51 KB
/
Copy pathdocker-compose.yml
File metadata and controls
73 lines (67 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: "3.8"
services:
# FastAPI application service
api:
build:
context: .
dockerfile: Dockerfile
container_name: vectorsphere_api
ports:
- "8000:8000"
environment:
- VECTOR_DB_HOST=weaviate
- VECTOR_DB_PORT=8080
- REDIS_HOST=redis
- REDIS_PORT=6379
- DEBUG=true
- OPENAI_API_KEY=${OPENAI_API_KEY}
volumes:
- .:/app
depends_on:
- weaviate
- redis
networks:
- vectorhub-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
# Weaviate vector database service
weaviate:
image: semitechnologies/weaviate:1.16.0
container_name: vectorsphere_weaviate
ports:
- "8080:8080"
environment:
- AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true
- PERSISTENCE_DATA_PATH=/var/lib/weaviate
networks:
- vectorhub-network
# Redis caching service
redis:
image: redis:latest
container_name: vectorsphere_redis
ports:
- "6379:6379"
networks:
- vectorhub-network
networks:
vectorhub-network:
driver: bridge
prometheus:
image: prom/prometheus
container_name: vectorsphere_prometheus
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana
container_name: vectorsphere_grafana
ports:
- "3001:3000"
volumes:
- grafana_data:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin