-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathcompose.test.yaml
More file actions
44 lines (41 loc) · 1.3 KB
/
Copy pathcompose.test.yaml
File metadata and controls
44 lines (41 loc) · 1.3 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
name: osinara-test
services:
postgres:
image: pgvector/pgvector:pg17
environment:
POSTGRES_DB: osinara_test
POSTGRES_PASSWORD: osinara-test-only
POSTGRES_USER: osinara_test
healthcheck:
test: ["CMD-SHELL", "pg_isready -U osinara_test -d osinara_test"]
interval: 2s
timeout: 3s
retries: 20
tmpfs:
- /var/lib/postgresql/data
tests:
build:
context: .
target: test
command: ["sh", "-c", "npm run migrate && npm run typecheck && npm test && npm run build"]
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgresql://osinara_test:osinara-test-only@postgres:5432/osinara_test
INVITATION_SIGNING_SECRET: integration-test-signing-secret-32-chars
RUN_DATABASE_INTEGRATION_TESTS: "true"
memory-embedding:
profiles: ["workers"]
image: ghcr.io/huggingface/text-embeddings-inference:cpu-1.9@sha256:ad950d30878eceb72aaf32024d26fa2b1d04a75304fa0b4776b49aa1941fea07
command:
- --model-id
- intfloat/multilingual-e5-small
- --revision
- 614241f622f53c4eeff9890bdc4f31cfecc418b3
- --auto-truncate=false
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost/health"]
interval: 5s
timeout: 5s
retries: 120