-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (73 loc) · 1.92 KB
/
docker-compose.yml
File metadata and controls
78 lines (73 loc) · 1.92 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: '3.8'
services:
# pytest-agents main service
pytest-agents:
build:
context: .
dockerfile: Dockerfile
container_name: pytest-agents
volumes:
# Mount source code for development
- ./src:/app/src:ro
- ./tests:/app/tests:ro
# Mount for agent state persistence (optional)
- agent-data:/app/.agent-memory
environment:
# pytest-agents configuration
- PYTEST_AGENTS_PROJECT_ROOT=/app
- PYTEST_AGENTS_AGENT_PM_ENABLED=true
- PYTEST_AGENTS_AGENT_RESEARCH_ENABLED=true
- PYTEST_AGENTS_AGENT_INDEX_ENABLED=true
- PYTEST_AGENTS_AGENT_TIMEOUT=30
- PYTEST_AGENTS_AGENT_RETRY_COUNT=3
- PYTEST_AGENTS_LOG_LEVEL=INFO
- PYTEST_AGENTS_ENABLE_AGENT_CACHING=true
- PYTEST_AGENTS_ENABLE_PARALLEL_AGENTS=false
command: ["pytest-agents", "verify"]
networks:
- pytest-agents-network
# Test runner service
pytest-agents-test:
build:
context: .
dockerfile: Dockerfile
container_name: pytest-agents-test
volumes:
- ./src:/app/src:ro
- ./tests:/app/tests:ro
- test-coverage:/app/htmlcov
environment:
- PYTEST_AGENTS_PROJECT_ROOT=/app
- PYTHONUNBUFFERED=1
command: ["uv", "run", "pytest", "-v", "--cov=src/pytest_agents", "--cov-report=html"]
networks:
- pytest-agents-network
profiles:
- test
# Development shell service
pytest-agents-dev:
build:
context: .
dockerfile: Dockerfile
container_name: pytest-agents-dev
volumes:
- .:/app
- agent-data:/app/.agent-memory
environment:
- PYTEST_AGENTS_PROJECT_ROOT=/app
- PYTEST_AGENTS_LOG_LEVEL=DEBUG
command: ["/bin/bash"]
stdin_open: true
tty: true
networks:
- pytest-agents-network
profiles:
- dev
networks:
pytest-agents-network:
driver: bridge
volumes:
agent-data:
driver: local
test-coverage:
driver: local