-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.test.yml
133 lines (132 loc) · 3.33 KB
/
docker-compose.test.yml
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
version: "3.9"
services:
app:
build:
context: .
target: test
dockerfile: Dockerfile
environment:
- PORT=3000
- MONGODB_HOST=mongo
- MONGODB_PORT=27017
- MONGODB_USER=root
- MONGODB_PASS=pass
- TRACELOOP_BASE_URL=some_url
- NEO4J_PROTOCOL=bolt
- NEO4J_HOST=neo4j
- NEO4J_PORT=7687
- NEO4J_USER=neo4j
- NEO4J_PASSWORD=password
- NEO4J_DB=neo4j
- POSTGRES_HOST=postgres
- POSTGRES_USER=root
- POSTGRES_PASS=pass
- POSTGRES_PORT=5432
- CHUNK_SIZE=512
- EMBEDDING_DIM=1024
- OPENAI_API_KEY=some_credentials
- COHERE_API_KEY=some_credentials
- GOOGLE_CLIENT_ID=some_id
- GOOGLE_CLIENT_SECRET=some_secrests
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=password
- QDRANT_HOST=qdrant
- QDRANT_PORT=6333
- QDRANT_API_KEY=
- SMART_PROXY_PROTOCOL=http
- SMART_PROXY_USER=user1
- SMART_PROXY_PASSWORD=password
- SMART_PROXY_HOST=sample_smart_proxy_host
- MAILGUN_API_KEY=sample_value
- FROM_EMAIL_ADDRESS=email@example.com
- MAILGUN_API_URL=https://api.example.net/v1/endpoint
volumes:
- ./coverage:/project/coverage
depends_on:
neo4j:
condition: service_healthy
mongo:
condition: service_healthy
postgres:
condition: service_healthy
redis:
condition: service_healthy
qdrant-healthcheck:
condition: service_healthy
neo4j:
image: "neo4j:5.9.0"
ports:
- "7687:7687"
- "7474:7474"
environment:
- NEO4J_AUTH=neo4j/password
- NEO4J_PLUGINS=["apoc", "graph-data-science"]
- NEO4J_dbms_security_procedures_unrestricted=apoc.*,gds.*
healthcheck:
test: ["CMD", "wget", "http://localhost:7474"]
interval: 1m30s
timeout: 10s
retries: 2
start_period: 40s
mongo:
image: "mongo:6.0.8"
ports:
- "27017:27017"
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=pass
healthcheck:
test: echo 'db.stats().ok' | mongosh localhost:27017/test --quiet
interval: 60s
timeout: 10s
retries: 2
start_period: 40s
postgres:
image: "ankane/pgvector"
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=pass
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7.2.4
command: redis-server --requirepass password
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=password
healthcheck:
test: ["CMD", "redis-cli", "-a", "password", "ping"]
interval: 10s
timeout: 30s
retries: 50
start_period: 30s
restart: always
qdrant:
image: qdrant/qdrant:v1.9.2
restart: always
container_name: qdrant
ports:
- 6333:6333
- 6334:6334
expose:
- 6333
- 6334
- 6335
volumes:
- ./qdrant_data:/qdrant_data
qdrant-healthcheck:
restart: always
image: curlimages/curl:latest
entrypoint: ["/bin/sh", "-c", "--", "while true; do sleep 30; done;"]
depends_on:
- qdrant
healthcheck:
test: ["CMD", "curl", "-f", "http://qdrant:6333/readyz"]
interval: 10s
timeout: 2s
retries: 5