-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (68 loc) · 1.55 KB
/
docker-compose.yml
File metadata and controls
72 lines (68 loc) · 1.55 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
version: '3.8'
services:
# Local Ethereum node (Anvil)
anvil:
image: ghcr.io/foundry-rs/foundry:latest
command: anvil --host 0.0.0.0 --port 8545 --chain-id 31337 --accounts 10 --balance 10000 --block-time 1
ports:
- '8545:8545'
healthcheck:
test: ['CMD', 'cast', 'block-number', '--rpc-url', 'http://localhost:8545']
interval: 5s
timeout: 3s
retries: 5
# Redis for job queues (optional)
redis:
image: redis:7-alpine
ports:
- '6379:6379'
volumes:
- redis-data:/data
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 5s
timeout: 3s
retries: 5
# BlobKit Proxy Server
proxy:
build: .
ports:
- '3000:3000'
- '9090:9090'
environment:
- NODE_ENV=development
- PORT=3000
- HOST=0.0.0.0
- RPC_URL=http://anvil:8545
- CHAIN_ID=31337
- REDIS_URL=redis://redis:6379
- LOG_LEVEL=debug
- RATE_LIMIT_REQUESTS=1000
- RATE_LIMIT_WINDOW_MS=60000
- PROXY_FEE_PERCENT=0
- MAX_BLOB_SIZE=131072
- JOB_TIMEOUT_SECONDS=300
- METRICS_ENABLED=true
- METRICS_PORT=9090
env_file:
- .env
depends_on:
anvil:
condition: service_healthy
redis:
condition: service_healthy
healthcheck:
test:
[
'CMD',
'wget',
'--no-verbose',
'--tries=1',
'--spider',
'http://localhost:3000/api/v1/health'
]
interval: 10s
timeout: 5s
retries: 3
volumes:
redis-data: