-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
25 lines (24 loc) · 847 Bytes
/
docker-compose.yml
File metadata and controls
25 lines (24 loc) · 847 Bytes
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
services:
server:
build: .
ports:
- "8000:8000"
environment:
- GITHUB_TOKEN=${GITHUB_TOKEN}
- GITLAB_TOKEN=${GITLAB_TOKEN:-}
- BITBUCKET_APP_PASSWORD=${BITBUCKET_APP_PASSWORD:-}
- MERGEGUARD_WEBHOOK_SECRET_GITHUB=${MERGEGUARD_WEBHOOK_SECRET_GITHUB:-}
- MERGEGUARD_WEBHOOK_SECRET_GITLAB=${MERGEGUARD_WEBHOOK_SECRET_GITLAB:-}
- MERGEGUARD_WEBHOOK_SECRET_BITBUCKET=${MERGEGUARD_WEBHOOK_SECRET_BITBUCKET:-}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
volumes:
- mergeguard-data:/home/mergeguard/.mergeguard-cache
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import httpx; httpx.get('http://localhost:8000/health').raise_for_status()"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
volumes:
mergeguard-data: