-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
87 lines (82 loc) · 2.87 KB
/
Copy pathdocker-compose.yml
File metadata and controls
87 lines (82 loc) · 2.87 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
# =============================================================================
# go — LLM honeypot persona
# =============================================================================
include:
- path: ../shared/docker-compose.ollama.yml
volumes:
honeypot-data: {}
honeypot-loot: {}
services:
arcp-runtime:
build:
context: .
args:
ARCP_SDK_VERSION: ${ARCP_SDK_VERSION:-latest}
BINARY: runtime
image: arcp-sdk-examples/go-honeypot-runtime:dev
container_name: arcp-go-runtime
depends_on:
ollama:
condition: service_healthy
environment:
OLLAMA_URL: ${OLLAMA_URL:-http://ollama:11434}
OLLAMA_MODEL: ${OLLAMA_MODEL:-qwen2.5:1.5b-instruct}
ARCP_RUNTIME_HOST: ${ARCP_RUNTIME_HOST:-0.0.0.0}
ARCP_RUNTIME_PORT: ${ARCP_RUNTIME_PORT:-8080}
ARCP_RUNTIME_PATH: ${ARCP_RUNTIME_PATH:-/arcp}
ARCP_AUTH_TOKEN: ${ARCP_AUTH_TOKEN:-dev-token-change-me}
ARCP_AGENT_NAME: ${ARCP_AGENT_NAME:-honeypot.shell}
HONEYPOT_HOSTNAME: ${HONEYPOT_HOSTNAME:-debian-prod-04}
HONEYPOT_MAX_TOKENS: ${HONEYPOT_MAX_TOKENS:-256}
RUNTIME_STORE_DIR: ${RUNTIME_STORE_DIR:-/data}
LOG_LEVEL: ${LOG_LEVEL:-info}
volumes:
- honeypot-data:/data
ports:
- "${ARCP_RUNTIME_PORT:-8080}:${ARCP_RUNTIME_PORT:-8080}"
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:${ARCP_RUNTIME_PORT:-8080}/healthz"]
interval: 5s
timeout: 3s
retries: 30
start_period: 10s
ssh-frontend:
build:
context: .
args:
ARCP_SDK_VERSION: ${ARCP_SDK_VERSION:-latest}
BINARY: sshfrontend
image: arcp-sdk-examples/go-honeypot-sshfrontend:dev
container_name: arcp-go-ssh-frontend
depends_on:
arcp-runtime:
condition: service_healthy
environment:
ARCP_RUNTIME_URL: ws://arcp-runtime:${ARCP_RUNTIME_PORT:-8080}${ARCP_RUNTIME_PATH:-/arcp}
ARCP_AUTH_TOKEN: ${ARCP_AUTH_TOKEN:-dev-token-change-me}
HONEYPOT_SSH_PORT: ${HONEYPOT_SSH_PORT:-2222}
HONEYPOT_HOSTNAME: ${HONEYPOT_HOSTNAME:-debian-prod-04}
HONEYPOT_PER_SESSION_BUDGET_USD: ${HONEYPOT_PER_SESSION_BUDGET_USD:-0.10}
LOG_LEVEL: ${LOG_LEVEL:-info}
ports:
- "${HONEYPOT_SSH_PORT:-2222}:${HONEYPOT_SSH_PORT:-2222}"
arcp-client:
build:
context: .
args:
ARCP_SDK_VERSION: ${ARCP_SDK_VERSION:-latest}
BINARY: client
image: arcp-sdk-examples/go-honeypot-client:dev
container_name: arcp-go-client
depends_on:
arcp-runtime:
condition: service_healthy
environment:
ARCP_RUNTIME_URL: ws://arcp-runtime:${ARCP_RUNTIME_PORT:-8080}${ARCP_RUNTIME_PATH:-/arcp}
ARCP_AUTH_TOKEN: ${ARCP_AUTH_TOKEN:-dev-token-change-me}
HONEYPOT_DROP_DIR: ${HONEYPOT_DROP_DIR:-/loot}
LOG_LEVEL: ${LOG_LEVEL:-info}
volumes:
- honeypot-loot:/loot
stdin_open: true
tty: true