-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcompose.yaml
More file actions
80 lines (79 loc) · 3.05 KB
/
compose.yaml
File metadata and controls
80 lines (79 loc) · 3.05 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
name: argocd-mcp-server-e2e
services:
argocd-server-mock:
container_name: argocd-server-mock
image: argocd-server-mock
build:
context: .
dockerfile: ./test/e2e/argocd-server-mock/Containerfile
ports:
- "50084:50084"
environment:
- ARGOCD_SERVER_MOCK_LISTEN_HOST=0.0.0.0
- ARGOCD_SERVER_MOCK_LISTEN_PORT=50084
- ARGOCD_SERVER_MOCK_TOKEN=secure-token
- ARGOCD_SERVER_MOCK_DEBUG=true
argocd-mcp-server-ok:
# instance of the Argo CD MCP server with a valid URL for the Argo CD server
container_name: argocd-mcp-server
image: argocd-mcp-server
build:
context: .
dockerfile: Containerfile
ports:
- "50081:8080"
environment:
- ARGOCD_URL=http://argocd-server-mock:50084
- ARGOCD_TOKEN=secure-token
- ARGOCD_MCP_SERVER_INSECURE=true
- ARGOCD_MCP_SERVER_DEBUG=true
- ARGOCD_MCP_SERVER_LISTEN_HOST=0.0.0.0 # here we need to bind to 0.0.0.0 to be able to connect to the server from the host machine
- ARGOCD_MCP_SERVER_LISTEN_PORT=8080
argocd-mcp-server-unreachable:
# instance of the Argo CD MCP server with an invalid URL for the Argo CD server
container_name: argocd-mcp-server-unreachable
image: argocd-mcp-server
ports:
- "50082:8080"
environment:
- ARGOCD_URL=http://argocd-server-mock:50085
- ARGOCD_TOKEN=secure-token
- ARGOCD_MCP_SERVER_INSECURE=true
- ARGOCD_MCP_SERVER_DEBUG=true
- ARGOCD_MCP_SERVER_LISTEN_HOST=0.0.0.0 # here we need to bind to 0.0.0.0 to be able to connect to the server from the host machine
- ARGOCD_MCP_SERVER_LISTEN_PORT=8080
argocd-mcp-server-stateless-replica1:
# instance of the Argo CD MCP server with a valid URL for the Argo CD server and stateless mode enabled
container_name: argocd-mcp-server-stateless-replica1
image: argocd-mcp-server
environment:
- ARGOCD_URL=http://argocd-server-mock:50084
- ARGOCD_TOKEN=secure-token
- ARGOCD_MCP_SERVER_INSECURE=true
- ARGOCD_MCP_SERVER_DEBUG=true
- ARGOCD_MCP_SERVER_STATELESS=true
- ARGOCD_MCP_SERVER_LISTEN_HOST=0.0.0.0
- ARGOCD_MCP_SERVER_LISTEN_PORT=8080
argocd-mcp-server-stateless-replica2:
# instance of the Argo CD MCP server with a valid URL for the Argo CD server and stateless mode enabled
container_name: argocd-mcp-server-stateless-replica2
image: argocd-mcp-server
environment:
- ARGOCD_URL=http://argocd-server-mock:50084
- ARGOCD_TOKEN=secure-token
- ARGOCD_MCP_SERVER_INSECURE=true
- ARGOCD_MCP_SERVER_DEBUG=true
- ARGOCD_MCP_SERVER_STATELESS=true
- ARGOCD_MCP_SERVER_LISTEN_HOST=0.0.0.0
- ARGOCD_MCP_SERVER_LISTEN_PORT=8080
load-balancer:
# load balancer to balance the traffic between the Argo CD MCP server instances
container_name: argocd-mcp-server-load-balancer
image: nginx:alpine
ports:
- "50090:80"
volumes:
- ./test/e2e/nginx.conf:/etc/nginx/nginx.conf:ro,z
depends_on:
- argocd-mcp-server-stateless-replica1
- argocd-mcp-server-stateless-replica2