-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (68 loc) · 2.08 KB
/
docker-compose.yml
File metadata and controls
73 lines (68 loc) · 2.08 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
name: amp-typescript-amp-playground
services:
postgres:
image: postgres:18-alpine
command: ["postgres", "-c", "config_file=/etc/postgresql/postgresql.conf"]
environment:
POSTGRES_DB_LIST: amp_typescript_playground
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
- 6435:5432
volumes:
- ./infra/postgres/postgres.conf:/etc/postgresql/postgresql.conf:ro
- ./infra/postgres/init.sh:/docker-entrypoint-initdb.d/init.sh:ro
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
anvil:
image: ghcr.io/foundry-rs/foundry
entrypoint: ["anvil", "--host", "0.0.0.0", "--block-time", "1"]
ports:
- 8545:8545
lgtm:
image: grafana/otel-lgtm
ports:
- 3030:3000 # Grafana UI
- 4317:4317 # OTLP gRPC
- 4318:4318 # OTLP HTTP
# Forwards ConnectRPC Arrow Flight requests to the Amp Arrow Flight gRPC server. This
# is useful if you want to e.g. query Amp directly from the browser.
proxy:
image: ghcr.io/edgeandnode/arrow-flight-proxy:latest
depends_on:
- amp
- lgtm
restart: unless-stopped
ports:
- 8080:8080 # HTTP
environment:
PROXY_UPSTREAM: amp:1602
PROXY_UPSTREAM_INSECURE: true
PROXY_METRICS: lgtm:4317
PROXY_METRICS_INSECURE: true
PROXY_FORWARD_HEADERS: "amp-*,authorization"
# Amp is a data engineering layer for Ethereum.
# https://github.com/edgeandnode/amp
amp:
image: ghcr.io/edgeandnode/amp:canary
command: ["--config", "/var/lib/amp/config.toml", "dev"]
depends_on:
- postgres
volumes:
- ./infra/amp/config.toml:/var/lib/amp/config.toml
- ./infra/amp/providers:/var/lib/amp/providers
- ./infra/amp/datasets:/var/lib/amp/datasets
- ./infra/amp/data:/var/lib/amp/data
restart: unless-stopped
ports:
- 1610:1610 # Admin API
- 1603:1603 # JSON Lines
- 1602:1602 # Arrow Flight
volumes:
postgres_data: