-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
83 lines (66 loc) · 2.13 KB
/
docker-compose.yaml
File metadata and controls
83 lines (66 loc) · 2.13 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
version: '3.8'
services:
# Jenkins MCP Server
jenkins-mcp-server:
build:
context: .
dockerfile: Dockerfile
container_name: jenkins-mcp-server
# Environment variables for Jenkins connection
environment:
# Required: Jenkins instance URL
JENKINS_URL: ${JENKINS_URL:-https://jenkins.example.com}
# Authentication: Use either API token or username/password
JENKINS_API_TOKEN: ${JENKINS_API_TOKEN:-}
# JENKINS_USERNAME: ${JENKINS_USERNAME:-}
# JENKINS_PASSWORD: ${JENKINS_PASSWORD:-}
# Optional: Timeout configuration
JENKINS_TIMEOUT: ${JENKINS_TIMEOUT:-30s}
# Optional: TLS configuration
JENKINS_TLS_SKIP_VERIFY: ${JENKINS_TLS_SKIP_VERIFY:-false}
JENKINS_CA_CERT: ${JENKINS_CA_CERT:-}
# Optional: Retry configuration
JENKINS_MAX_RETRIES: ${JENKINS_MAX_RETRIES:-3}
JENKINS_RETRY_BACKOFF: ${JENKINS_RETRY_BACKOFF:-1s}
# Mount volumes for configuration and CA certificates
volumes:
# Optional: Mount config file
- ./examples/config.yaml:/app/config.yaml:ro
# Optional: Mount custom CA certificate
# - ./certs/ca.crt:/app/ca.crt:ro
# Stdin and TTY for MCP stdio communication
stdin_open: true
tty: true
# Restart policy
restart: unless-stopped
# Resource limits (adjust as needed)
deploy:
resources:
limits:
cpus: '0.5'
memory: 256M
reservations:
cpus: '0.1'
memory: 64M
# Logging configuration
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# Network mode (default bridge is fine for most cases)
# network_mode: bridge
# Security options
security_opt:
- no-new-privileges:true
# Read-only root filesystem for security
# Uncomment if you don't need to write to the container filesystem
# read_only: true
# Optional: Define custom network
# networks:
# mcp-network:
# driver: bridge
# Optional: Define volumes for persistent data
# volumes:
# config-data:
# driver: local