-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
63 lines (59 loc) · 1.53 KB
/
docker-compose.test.yml
File metadata and controls
63 lines (59 loc) · 1.53 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
version: '3.8'
services:
# PostgreSQL for capiscio-server
db:
image: postgres:15-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=capiscio
ports:
- "5435:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
# capiscio-server REST API
server:
build:
context: ../capiscio-server
dockerfile: Dockerfile
ports:
- "8081:8080"
environment:
- DATABASE_URL=postgres://postgres:postgres@db:5432/capiscio?sslmode=disable
- PORT=8080
- LOG_LEVEL=debug
- CA_ISSUER_URL=http://server:8080
- ALLOW_AGENT_REGISTRATION=true
depends_on:
db:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/health"]
interval: 5s
timeout: 5s
retries: 10
# MCP Python test runner
test-runner:
build:
context: .
dockerfile: Dockerfile.test
volumes:
- .:/workspace
working_dir: /workspace
environment:
- CAPISCIO_SERVER_URL=http://server:8080
- CAPISCIO_CORE_ADDR= # empty = embedded mode (auto-download binary)
- CAPISCIO_API_KEY=test-integration-key
- PYTHONPATH=/workspace
- PYTEST_ARGS=${PYTEST_ARGS:--v}
depends_on:
server:
condition: service_healthy
command: >
pytest tests/integration/ -v --tb=short
-m integration ${PYTEST_ARGS}
volumes:
db-data: