This repository has been archived by the owner on May 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
74 lines (70 loc) · 1.65 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
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
networks:
op-node:
ipam:
driver: default
config:
- subnet: 172.20.0.0/16
gateway: 172.20.0.1
services:
op-reth:
build:
context: .
dockerfile: reth/Dockerfile
ports:
- '127.0.0.1:9545:9545' # RPC
- '127.0.0.1:9546:9546' # websocket
- '127.0.0.1:9551:9551' # engine auth
- '31303:31303' # P2P TCP
- '31303:31303/udp' # P2P UDP
- '127.0.0.1:9101:9101' # metrics
volumes:
- /var/lib/op-reth/rethdata:/root/rethdata
- ${PWD}/rethlogs:/root/rethlogs
stop_grace_period: 3m
env_file:
- .env
extra_hosts:
- 'host.docker.internal:host-gateway'
networks:
- op-node
restart: unless-stopped
magi:
build:
context: .
dockerfile: magi/Dockerfile
depends_on:
- op-reth
ports:
- '127.0.0.1:9200:9200' # Magi metrics
- '127.0.0.1:9645:9645' # Magi RPC
- '9876:9876' # Magi p2p
- '9876:9876/udp' # Magi p2p
stop_grace_period: 3m
env_file:
- .env
extra_hosts:
- 'host.docker.internal:host-gateway'
networks:
- op-node
volumes:
- ${PWD}/magilogs:/root/magilogs
restart: unless-stopped
prometheus:
image: prom/prometheus:latest
container_name: prometheus
ports:
- '127.0.0.1:9102:9090' # metrics
command:
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.path=/prometheusdata
volumes:
- ${PWD}/prometheus/:/etc/prometheus/
- prometheus_data:/prometheusdata
restart: unless-stopped
depends_on:
- op-reth
- magi
networks:
- op-node
volumes:
prometheus_data: