-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (50 loc) · 1.24 KB
/
Copy pathdocker-compose.yml
File metadata and controls
54 lines (50 loc) · 1.24 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
# Test infrastructure for Phase 2: Persistence & Resilience
# Usage: docker compose up -d
# Ports are offset from defaults to avoid host collisions.
services:
redis:
image: redis:8-alpine
ports:
- "6380:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 3
restart: unless-stopped
postgres:
image: postgres:17-alpine
ports:
- "5433:5432"
environment:
POSTGRES_USER: anycode_test
POSTGRES_PASSWORD: testpass
POSTGRES_DB: anycode_test
healthcheck:
test: ["CMD", "pg_isready", "-U", "anycode_test"]
interval: 5s
timeout: 3s
retries: 3
restart: unless-stopped
chromadb:
image: chromadb/chroma:1.5.5
ports:
- "8100:8000"
environment:
CHROMA_HOST_ADDR: "0.0.0.0"
CHROMA_HOST_PORT: "8000"
healthcheck:
test:
- CMD-SHELL
- >-
bash -c 'exec 3<>/dev/tcp/127.0.0.1/8000 &&
printf "GET /api/v2/heartbeat HTTP/1.0\r\nHost: localhost\r\n\r\n" >&3 &&
head -n 1 <&3 | grep -q " 200 "'
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
restart: unless-stopped
networks:
default:
name: anycode-test-net