-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (30 loc) · 1.14 KB
/
Copy pathdocker-compose.yml
File metadata and controls
32 lines (30 loc) · 1.14 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
# AgentWorks - autonomous agent service (+ optional containerized TSS signer).
# Local/dev always-on: `docker compose up agent` (TSS stays on your machine/VM).
# Fully containerized signer too: `docker compose --profile tss up` (stop the local signer first -
# the CAW relay rejects a duplicate node identity). See docs/DEPLOY_AGENTS.md.
services:
agent:
build:
context: .
dockerfile: agents/Dockerfile
env_file: .env
environment:
- PORT=8000
# second provider identity (public address; reuses the provider wallet creds)
- CAW_PROVIDER_ADDRESS_2=${CAW_PROVIDER_ADDRESS_2:-}
# optional: protect POST /trigger and restrict CORS to the dashboard origin
- AGENT_TRIGGER_TOKEN=${AGENT_TRIGGER_TOKEN:-}
- AGENT_CORS_ORIGINS=${AGENT_CORS_ORIGINS:-*}
ports:
- "8000:8000"
restart: unless-stopped
# Optional containerized TSS signer. Mount your key shares read-write at ./keys/<name>/.
# Enable with: docker compose --profile tss up
tss:
profiles: ["tss"]
build:
context: .
dockerfile: agents/tss/Dockerfile
volumes:
- ./keys:/keys
restart: unless-stopped