forked from 0xProject/rpc-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (45 loc) · 1.19 KB
/
docker-compose.yml
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
services:
rpc-gateway:
build:
context: .
dockerfile: Dockerfile
ports:
- 8080:4000 # Main port
- 9090:9090 # Metrics port
volumes:
- ./config.json:/app/config.json:ro
- ./config_sepolia.json:/app/config_sepolia.json:ro
- ./config_holesky.json:/app/config_holesky.json:ro
environment:
- GATEWAY_TOKEN_MAP={"token1":{"name":"token1","numOfRequestPerSec":10},"token2":{"name":"token2","numOfRequestPerSec":20}}
user: nobody
entrypoint: ["/app/rpc-gateway", "--config", "/app/config.json", "--auth"]
networks:
- app-network
prometheus:
image: prom/prometheus:v2.44.0
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
ports:
- "9091:9090" # Changed to 9091 on the host
networks:
- app-network
grafana:
image: grafana/grafana:latest
ports:
- 3000:3000
volumes:
- grafana-storage:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
depends_on:
- rpc-gateway
networks:
- app-network
volumes:
grafana-storage:
networks:
app-network:
driver: bridge