Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
157 lines (149 loc) · 4.07 KB
/
Copy pathdocker-compose.yml
File metadata and controls
157 lines (149 loc) · 4.07 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
services:
backend:
container_name: backend
image: ghcr.io/intuitem/ciso-assistant-community/backend:latest
pull_policy: always
restart: always
environment:
- ALLOWED_HOSTS=backend,localhost
- CISO_ASSISTANT_URL=https://localhost:8443
- DJANGO_DEBUG=True
- AUTH_TOKEN_TTL=7200
- HOME=/tmp
- XDG_CACHE_HOME=/tmp/.cache
- XDG_CONFIG_HOME=/tmp/.config
- XDG_DATA_HOME=/tmp/.local/share
- QDRANT_URL=http://qdrant:6333
read_only: true
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
tmpfs:
- /tmp:rw,noexec,nosuid,nodev
volumes:
- ./db:/code/db
user: "1001:1001"
healthcheck:
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://backend:8000/api/health/', timeout=5)"]
interval: 10s
timeout: 10s
retries: 30
start_period: 150s
huey:
container_name: huey
image: ghcr.io/intuitem/ciso-assistant-community/backend:latest
pull_policy: always
depends_on:
backend:
condition: service_healthy
restart: always
environment:
- ALLOWED_HOSTS=backend,localhost
- CISO_ASSISTANT_URL=https://localhost:8443
- DJANGO_DEBUG=False
- AUTH_TOKEN_TTL=7200
- HOME=/tmp
- XDG_CACHE_HOME=/tmp/.cache
- XDG_CONFIG_HOME=/tmp/.config
- XDG_DATA_HOME=/tmp/.local/share
- QDRANT_URL=http://qdrant:6333
read_only: true
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
tmpfs:
- /tmp:rw,noexec,nosuid,nodev
volumes:
- ./db:/code/db
entrypoint:
- /bin/sh
- -c
- |
python manage.py run_huey -w 2 --scheduler-interval 60
user: "1001:1001"
frontend:
container_name: frontend
environment:
- PUBLIC_BACKEND_API_URL=http://backend:8000/api
- PUBLIC_BACKEND_API_EXPOSED_URL=https://localhost:8443/api
- PROTOCOL_HEADER=x-forwarded-proto
- HOST_HEADER=x-forwarded-host
image: ghcr.io/intuitem/ciso-assistant-community/frontend:latest
pull_policy: always
read_only: true
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
tmpfs:
- /tmp:rw,noexec,nosuid,nodev
restart: always
depends_on:
backend:
condition: service_healthy
qdrant:
container_name: qdrant
image: qdrant/qdrant:v1.19.1
restart: unless-stopped
volumes:
- qdrant_data:/qdrant/storage
ports:
- 127.0.0.1:6333:6333
# MCP server for external AI orchestrators. Opt-in: `docker compose --profile mcp up -d`.
# No `ports:` — reachable only through caddy at /mcp.
mcp:
container_name: mcp
image: ghcr.io/intuitem/ciso-assistant-community/mcp:latest
pull_policy: always
profiles:
- mcp
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
environment:
- API_URL=http://backend:8000/api
- CA_MCP_TRANSPORT=streamable-http
- CA_MCP_HOST=0.0.0.0
- CA_MCP_PORT=8001
- CA_MCP_READ_ONLY=true
# matched against the Host header, port included; does not set the bind address
- CA_MCP_ALLOWED_HOSTS=localhost:8443
# each caller presents its own PAT
- CA_MCP_ALLOW_ENV_TOKEN=false
- HOME=/tmp
- XDG_CACHE_HOME=/tmp/.cache
- XDG_CONFIG_HOME=/tmp/.config
- XDG_DATA_HOME=/tmp/.local/share
read_only: true
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
tmpfs:
- /tmp:rw,noexec,nosuid,nodev
user: "1001:1001"
caddy:
container_name: caddy
image: caddy:2.11.4
environment:
- CISO_ASSISTANT_URL=https://localhost:8443
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
ports:
- 127.0.0.1:8443:8443
volumes:
- ./db/caddy:/data/caddy
command: |
sh -c 'echo $$CISO_ASSISTANT_URL "{
reverse_proxy /api/* backend:8000
reverse_proxy /mcp* mcp:8001
reverse_proxy /* frontend:3000
tls internal
}" > Caddyfile && caddy run'
volumes:
qdrant_data: