-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
126 lines (104 loc) · 2.83 KB
/
docker-compose.yml
File metadata and controls
126 lines (104 loc) · 2.83 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
version: '3.8'
services:
planfile-runner:
build: .
image: planfile/runner:latest
container_name: planfile-ci
environment:
# General settings
- WORKSPACE=/workspace
- RESULTS_DIR=/app/results
- MAX_ITERATIONS=5
- AUTO_FIX=false
# Ollama settings
- ENABLE_OLLAMA=true
- OLLAMA_MODEL=qwen2.5:3b
# Strategy file (mount or copy)
- STRATEGY_FILE=/app/planfile.yaml
# Backend configuration
- BACKENDS=github,jira # Comma-separated list
# GitHub settings
- GITHUB_TOKEN=${GITHUB_TOKEN}
- GITHUB_REPO=${GITHUB_REPO}
# Jira settings
- JIRA_URL=${JIRA_URL}
- JIRA_EMAIL=${JIRA_EMAIL}
- JIRA_TOKEN=${JIRA_TOKEN}
- JIRA_PROJECT=${JIRA_PROJECT}
# GitLab settings
- GITLAB_URL=${GITLAB_URL:-https://gitlab.com}
- GITLAB_TOKEN=${GITLAB_TOKEN}
- GITLAB_PROJECT_ID=${GITLAB_PROJECT_ID}
# Repository to analyze (optional)
- GIT_REPO=${GIT_REPO}
# Output settings
- OUTPUT_FILE=/app/results/ci-results.json
volumes:
# Mount workspace directory
- ./workspace:/workspace
# Mount results directory
- ./results:/app/results
# Mount strategy file
- ./planfile.yaml:/app/planfile.yaml:ro
# Mount git config if needed
- ~/.gitconfig:/root/.gitconfig:ro
ports:
- "11434:11434" # Ollama API
networks:
- planfile
# Restart policy
restart: unless-stopped
# Health check
healthcheck:
test: ["CMD", "planfile", "--version"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Optional: PostgreSQL for storing results
postgres:
image: postgres:15-alpine
container_name: planfile-db
environment:
- POSTGRES_DB=planfile
- POSTGRES_USER=planfile
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
- ./scripts/init-db.sql:/docker-entrypoint-initdb.d/init.sql:ro
networks:
- planfile
restart: unless-stopped
# Optional: Redis for caching
redis:
image: redis:7-alpine
container_name: planfile-redis
command: redis-server --appendonly yes
volumes:
- redis_data:/data
networks:
- planfile
restart: unless-stopped
# Optional: Web UI for monitoring
web-ui:
build:
context: .
dockerfile: Dockerfile.web
container_name: planfile-ui
environment:
- API_URL=http://planfile-runner:8080
- REDIS_URL=redis://redis:6379
ports:
- "3000:3000"
networks:
- planfile
depends_on:
- planfile-runner
- redis
restart: unless-stopped
networks:
planfile:
driver: bridge
volumes:
postgres_data:
redis_data: