This repository was archived by the owner on Jan 27, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
142 lines (135 loc) · 3.48 KB
/
docker-compose.yml
File metadata and controls
142 lines (135 loc) · 3.48 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
version: "3.8"
networks:
prime:
driver: bridge
attachable: true
app-network:
driver: bridge
attachable: true
volumes:
redis-data:
services:
reth:
image: ghcr.io/paradigmxyz/reth:latest
platform: linux/amd64
entrypoint: ["reth", "node", "--dev", "--chain", "dev", "--dev.block-time", "2sec", "--http", "--ws", "--http.addr", "0.0.0.0", "--ws.addr", "0.0.0.0", "--metrics", "0.0.0.0:9001"]
ports:
- "8545:8545"
- "9001:9001"
networks:
- prime
- app-network
restart: always
healthcheck:
test: ["CMD-SHELL", "timeout 5 bash -c 'echo > /dev/tcp/localhost/8545' || exit 1"]
interval: 3s
timeout: 5s
retries: 3
start_period: 10s
contract-deployer:
image: ghcr.io/foundry-rs/foundry:latest
platform: linux/amd64
volumes:
- ./smart-contracts:/app
working_dir: /app
environment:
- RPC_URL=http://reth:8545
entrypoint: ["/bin/sh", "-c"]
command: |
"
set -x
echo 'Starting contract deployment...'
chmod +x ./deploy.sh
chmod +x ./deploy_work_validation.sh
set +e
./deploy.sh && ./deploy_work_validation.sh
set -e
echo 'Deployment completed.'
"
networks:
- prime
depends_on:
reth:
condition: service_healthy
redis:
image: redis:alpine
ports:
- "6380:6379"
networks:
- prime
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
discovery:
image: ghcr.io/primeintellect-ai/protocol/discovery:dev
platform: linux/amd64
ports:
- "8089:8089"
environment:
- RPC_URL=http://reth:8545
- REDIS_URL=redis://redis:6379
- PLATFORM_API_KEY=prime
- MAX_NODES_PER_IP=3
networks:
- prime
depends_on:
reth:
condition: service_healthy
redis:
condition: service_healthy
contract-deployer:
condition: service_completed_successfully
orchestrator:
image: ghcr.io/primeintellect-ai/protocol/orchestrator:dev
platform: linux/amd64
ports:
- "8090:8090"
environment:
- RPC_URL=http://reth:8545
- REDIS_STORE_URL=redis://redis:6379
- DISCOVERY_URLS=http://discovery:8089
- URL=http://localhost:8090
- COORDINATOR_KEY=${POOL_OWNER_PRIVATE_KEY}
- COMPUTE_POOL_ID=${WORKER_COMPUTE_POOL_ID}
- DOMAIN_ID=0
- PORT=8090
- DISCOVERY_REFRESH_INTERVAL=10
- S3_CREDENTIALS=${S3_CREDENTIALS}
networks:
- prime
depends_on:
reth:
condition: service_healthy
redis:
condition: service_healthy
discovery:
condition: service_started
validator:
image: ghcr.io/primeintellect-ai/protocol/validator:dev
platform: linux/amd64
ports:
- "8099:8080"
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- prime
environment:
- RPC_URL=http://reth:8545
- DISCOVERY_URLS=http://discovery:8089
- VALIDATOR_KEY=${PRIVATE_KEY_VALIDATOR}
- WORK_VALIDATION_CONTRACT=${WORK_VALIDATION_CONTRACT}
- POOL_ID=${WORKER_COMPUTE_POOL_ID}
- WORK_VALIDATION_INTERVAL=30
- TOPLOC_SERVER_URL=${TOPLOC_SERVER_URL}
- TOPLOC_AUTH_TOKEN=${TOPLOC_AUTH_TOKEN}
- TOPLOC_GRACE_INTERVAL=15
- REDIS_URL=redis://redis:6379
depends_on:
reth:
condition: service_healthy
redis:
condition: service_healthy
discovery:
condition: service_started