-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
82 lines (78 loc) · 2.46 KB
/
docker-compose.yml
File metadata and controls
82 lines (78 loc) · 2.46 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
# MCP-Hound Docker Compose
# Development and testing configuration
services:
#============================================================================
# Production service
#============================================================================
mcp-hound:
build:
context: .
target: production
image: jmagly/mcp-hound:latest
container_name: mcp-hound
restart: unless-stopped
ports:
- "3100:3000"
environment:
- HOUND_URL=${HOUND_URL:-http://hound:6080}
- HOUND_TIMEOUT=${HOUND_TIMEOUT:-30000}
- GITEA_URL=${GITEA_URL:-}
- GITEA_TOKEN=${GITEA_TOKEN:-}
- GITHUB_URL=${GITHUB_URL:-}
- GITHUB_TOKEN=${GITHUB_TOKEN:-}
- MCP_PORT=3000
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3000/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 5s
# Uncomment to add Hound service
# depends_on:
# - hound
#============================================================================
# Test runner - runs all tests in container
#============================================================================
test:
build:
context: .
target: test
image: jmagly/mcp-hound:test
container_name: mcp-hound-test
profiles:
- test
# Test stage runs tests during build, so this just validates the build
#============================================================================
# Development with live reload
#============================================================================
dev:
build:
context: .
dockerfile: Dockerfile.dev
container_name: mcp-hound-dev
profiles:
- dev
ports:
- "3100:3000"
volumes:
- ./src:/app/src:ro
- ./package.json:/app/package.json:ro
environment:
- HOUND_URL=${HOUND_URL:-http://localhost:6080}
- GITEA_URL=${GITEA_URL:-}
- GITEA_TOKEN=${GITEA_TOKEN:-}
- GITHUB_URL=${GITHUB_URL:-}
- GITHUB_TOKEN=${GITHUB_TOKEN:-}
command: ["npm", "run", "dev"]
#============================================================================
# Optional: Hound service for local development
#============================================================================
# hound:
# image: etsy/hound
# container_name: hound
# ports:
# - "6080:6080"
# volumes:
# - ./hound-config.json:/data/config.json:ro
# environment:
# - HOUND_REPO_DIR=/data/repos