-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
69 lines (66 loc) · 1.99 KB
/
Copy pathcompose.yaml
File metadata and controls
69 lines (66 loc) · 1.99 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
services:
redis:
image: redis:7-bookworm
restart: unless-stopped
command:
- redis-server
- --appendonly
- "yes"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 2s
timeout: 5s
retries: 30
start_period: 10s
volumes:
- oz-redis-data:/data
anvil:
image: ghcr.io/foundry-rs/foundry:latest
entrypoint:
- anvil
command:
- --host
- 0.0.0.0
- --port
- "8545"
- --chain-id
- "31337"
- --block-time
- "2"
ports:
- "${ANVIL_HOST_PORT:-8545}:8545"
oz-relayer:
image: openzeppelin/openzeppelin-relayer:${OZ_RELAYER_VERSION:-v1.4.0}
restart: unless-stopped
# Match ownership of bind-mounted ./config/oz-relayer/keys (defaults suit many Linux desktops).
user: "${OZ_RELAYER_UID:-1000}:${OZ_RELAYER_GID:-1000}"
depends_on:
redis:
condition: service_healthy
anvil:
condition: service_started
environment:
APP_PORT: 8080
METRICS_PORT: 8081
METRICS_ENABLED: "true"
REDIS_URL: redis://redis:6379
REPOSITORY_STORAGE_TYPE: redis
RESET_STORAGE_ON_START: "false"
STORAGE_ENCRYPTION_KEY: ${OZ_STORAGE_ENCRYPTION_KEY:-MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY=}
API_KEY: ${OZ_RELAYER_API_KEY:-local-oz-relayer-api-key-32chars}
WEBHOOK_SIGNING_KEY: ${OZ_WEBHOOK_SIGNING_KEY:-local-webhook-signing-key}
KEYSTORE_PASSPHRASE: ${OZ_KEYSTORE_PASSPHRASE:-change-me}
LOG_LEVEL: ${OZ_LOG_LEVEL:-info}
IN_DOCKER: "true"
RPC_BLOCK_PRIVATE_IPS: "false"
# Single HTTP client (clearmacro-provider) in dev; stock defaults can 429 under burst /readyz + worker.
RATE_LIMIT_REQUESTS_PER_SECOND: "500"
RATE_LIMIT_BURST_SIZE: "600"
RELAYER_CONCURRENCY_LIMIT: "200"
ports:
- "${OZ_RELAYER_HOST_PORT:-8080}:8080"
- "${OZ_RELAYER_METRICS_HOST_PORT:-8081}:8081"
volumes:
- ./config/oz-relayer:/app/config:ro
volumes:
oz-redis-data: