-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
78 lines (63 loc) · 1.71 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
78 lines (63 loc) · 1.71 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
version: '3.8'
services:
# ============================================================
# Wazuh MCP Server
# ============================================================
wazuh-mcp-server:
build:
context: .
dockerfile: Dockerfile.server
# container_name: wazuh-mcp-server
restart: unless-stopped
ports:
- "8080:8080"
# Load environment variables from .env file
env_file:
- .env
volumes:
# Persist ChromaDB data
- ./rag_chroma:/app/rag_chroma
# Mount .env file as read-only (backup access method)
- ./.env:/app/.env:ro
networks:
- wazuh-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# ============================================================
# Wazuh Client (Interactive)
# ============================================================
wazuh-client:
build:
context: .
dockerfile: Dockerfile.client
# container_name: wazuh-client
restart: unless-stopped
# Load environment variables from .env file
env_file:
- .env
# Override MCP server URL to use container name
environment:
- WMCP_SERVER_URL=http://wazuh-mcp-server:8080
volumes:
# Share ChromaDB with server
- ./rag_chroma:/app/rag_chroma
# Mount .env file as read-only (backup access method)
- ./.env:/app/.env:ro
networks:
- wazuh-network
depends_on:
wazuh-mcp-server:
condition: service_healthy
# Interactive mode for CLI
stdin_open: true
tty: true
networks:
wazuh-network:
driver: bridge
volumes:
rag_chroma:
driver: local