-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (33 loc) · 1.29 KB
/
docker-compose.yml
File metadata and controls
36 lines (33 loc) · 1.29 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
# ──────────────────────────────────────────────────────────
# Shanon — Solana Security Platform
# Docker Compose: API server + CLI scanner
# ──────────────────────────────────────────────────────────
version: "3.9"
services:
# ─── Shanon API ────────────────────────────────────────
api:
build:
context: .
dockerfile: Dockerfile.api
ports:
- "8080:8080"
environment:
- RUST_LOG=info
- SHANON_API_PORT=8080
- SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
restart: unless-stopped
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/api/v1/health" ]
interval: 30s
timeout: 5s
retries: 3
# ─── Shanon Scanner (CLI mode) ─────────────────────────
scanner:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./scan-targets:/targets:ro
entrypoint: [ "shanon", "scan", "/targets" ]
profiles:
- scan