generated from TogetherCrew/python-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
92 lines (89 loc) · 1.97 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
version: "3.9"
services:
app:
build:
context: .
target: test
dockerfile: Dockerfile
environment:
- PORT=3000
- RABBIT_HOST=rabbitmq
- RABBIT_PORT=5672
- RABBIT_USER=root
- RABBIT_PASSWORD=pass
- NEO4J_DB=neo4j
- POSTGRES_HOST=postgres
- POSTGRES_USER=root
- POSTGRES_PASS=pass
- POSTGRES_PORT=5432
- SENTRY_DSN=sample_dsn
- SENTRY_ENV=local
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=
- CHUNK_SIZE=512
- EMBEDDING_DIM=1024
- QDRANT_HOST=qdrant
- QDRANT_PORT=6333
- QDRANT_API_KEY=
networks:
- python_service_network
volumes:
- ./coverage:/project/coverage
depends_on:
postgres:
condition: service_healthy
qdrant-healthcheck:
condition: service_healthy
redis:
condition: service_healthy
postgres:
image: "ankane/pgvector"
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=pass
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
networks:
- python_service_network
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
redis:
image: redis:latest
ports:
- "6379:6379"
networks:
- python_service_network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
networks:
python_service_network:
driver: bridge