-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (53 loc) · 1.24 KB
/
docker-compose.yml
File metadata and controls
58 lines (53 loc) · 1.24 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
version: '3.8'
services:
# Mock x402-protected API server
mock-api:
build:
context: ./packages/mock-api
dockerfile: Dockerfile
ports:
- "3001:3001"
environment:
- PORT=3001
- FACILITATOR_URL=http://facilitator:3000
- CHAIN_ID=84532
- PAY_TO_ADDRESS=0x742d35Cc6631C0532925a3b8D000cE3D
depends_on:
- facilitator
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3001/health"]
interval: 30s
timeout: 10s
retries: 3
# Local x402 facilitator (simplified mock)
facilitator:
image: node:18-alpine
ports:
- "3000:3000"
working_dir: /app
volumes:
- ./docker/facilitator:/app
command: ["node", "server.js"]
healthcheck:
test: ["CMD", "wget", "--spider", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
# Demo web application
demo:
build:
context: ./apps/demo
dockerfile: Dockerfile
ports:
- "3002:3000"
environment:
- NEXT_PUBLIC_API_URL=http://localhost:3001
- NEXT_PUBLIC_FACILITATOR_URL=http://localhost:3000
depends_on:
- mock-api
- facilitator
networks:
default:
name: x402-agent-kit
volumes:
facilitator_data: