-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
121 lines (116 loc) · 3.22 KB
/
Copy pathdocker-compose.yml
File metadata and controls
121 lines (116 loc) · 3.22 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
services:
nginx:
image: nginx:alpine
container_name: snowball-nginx
restart: unless-stopped
ports:
- "127.0.0.1:8080:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
frontend:
condition: service_healthy
server:
condition: service_healthy
agent-server:
condition: service_healthy
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
server:
build:
context: .
dockerfile: apps/server/Dockerfile
container_name: snowball-server
restart: unless-stopped
volumes:
- server-data:/app/apps/server/data
environment:
- PORT=3001
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3001/api/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
frontend:
build:
context: .
dockerfile: apps/web/Dockerfile
args:
NEXT_PUBLIC_PRIVY_APP_ID: ${NEXT_PUBLIC_PRIVY_APP_ID:-}
NEXT_PUBLIC_API_BASE: ${NEXT_PUBLIC_API_BASE:-https://creditcoin.hypurrquant.com}
NEXT_PUBLIC_CHAT_API_BASE: ${NEXT_PUBLIC_CHAT_API_BASE:-https://creditcoin.hypurrquant.com/api}
container_name: snowball-frontend
restart: unless-stopped
depends_on:
server:
condition: service_healthy
agent-server:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1:3000/"]
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
usc-worker:
build:
context: .
dockerfile: apps/usc-worker/Dockerfile
container_name: snowball-usc-worker
restart: unless-stopped
environment:
- SEPOLIA_RPC=${SEPOLIA_RPC:-https://1rpc.io/sepolia}
- USC_RPC=${USC_RPC:-https://rpc.usc-testnet2.creditcoin.network}
- PROOF_API=${PROOF_API:-https://proof-gen-api.usc-testnet2.creditcoin.network}
- DEPLOYER_PRIVATE_KEY=${DEPLOYER_PRIVATE_KEY}
- START_BLOCK=${START_BLOCK:-}
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
agent-server:
build:
context: .
dockerfile: apps/agent-server/Dockerfile
container_name: snowball-agent-server
restart: unless-stopped
volumes:
- agent-data:/app/apps/agent-server/data
environment:
- AGENT_SERVER_PORT=3002
- AGENT_PRIVATE_KEY=${AGENT_PRIVATE_KEY}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- RPC_URL=${RPC_URL:-https://rpc.cc3-testnet.creditcoin.network}
- PLANNER_MODE=${PLANNER_MODE:-cli}
- CLAUDE_PROXY_URL=${CLAUDE_PROXY_URL:-http://host.docker.internal:3003}
extra_hosts:
- "host.docker.internal:host-gateway"
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3002/api/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
volumes:
server-data:
agent-data: