forked from kylewanginchina/gitlab-claude-webhook
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (39 loc) · 1.4 KB
/
docker-compose.yml
File metadata and controls
41 lines (39 loc) · 1.4 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
services:
gitlab-claude-webhook:
build: .
container_name: gitlab-claude-webhook
ports:
- "${PORT:-3000}:${PORT:-3000}"
environment:
- ANTHROPIC_BASE_URL=${ANTHROPIC_BASE_URL:-https://api.anthropic.com}
- ANTHROPIC_AUTH_TOKEN=${ANTHROPIC_AUTH_TOKEN}
- OPENAI_BASE_URL=${OPENAI_BASE_URL:-https://api.openai.com/v1}
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- AI_DEFAULT_PROVIDER=${AI_DEFAULT_PROVIDER:-claude}
- CLAUDE_DEFAULT_MODEL=${CLAUDE_DEFAULT_MODEL:-claude-sonnet-4-20250514}
- CODEX_DEFAULT_MODEL=${CODEX_DEFAULT_MODEL:-gpt-5.1-codex-max}
- CODEX_REASONING_EFFORT=${CODEX_REASONING_EFFORT:-high}
- GITLAB_BASE_URL=${GITLAB_BASE_URL:-https://gitlab.com}
- GITLAB_TOKEN=${GITLAB_TOKEN}
- WEBHOOK_SECRET=${WEBHOOK_SECRET}
- PORT=${PORT:-3000}
- WORK_DIR=/tmp/gitlab-claude-work
- LOG_LEVEL=${LOG_LEVEL:-info}
volumes:
- ./logs:/app/logs
- webhook-work:/tmp/gitlab-claude-work
restart: unless-stopped
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:${PORT:-3000}/health', (res) => { process.exit(res.statusCode === 200 ? 0 : 1) }).on('error', () => process.exit(1))"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
webhook-work:
networks:
default:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16