forked from base/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
84 lines (80 loc) · 2.27 KB
/
Copy pathdocker-compose.yml
File metadata and controls
84 lines (80 loc) · 2.27 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
74
75
76
77
78
79
80
81
82
83
84
services:
execution:
build:
context: .
dockerfile: Dockerfile
container_name: execution
restart: unless-stopped
logging:
driver: local
options:
max-size: "5G"
max-file: "5"
ports:
- "127.0.0.1:8545:8545" # RPC
- "127.0.0.1:8546:8546" # websocket
- "127.0.0.1:7301:6060" # metrics
- "30303:30303" # P2P TCP
- "30303:30303/udp" # P2P UDP
command: ["bash", "./execution-entrypoint"]
volumes:
- ${HOST_DATA_DIR:-./reth-data}:/data
env_file:
- ${NETWORK_ENV:-.env.mainnet} # Use .env.mainnet by default, override with .env.sepolia for testnet
node:
build:
context: .
dockerfile: Dockerfile
container_name: consensus
restart: unless-stopped
logging:
driver: local
options:
max-size: "5G"
max-file: "5"
depends_on:
- execution
ports:
- "127.0.0.1:7545:9545" # RPC
- "9222:9222" # P2P TCP
- "9222:9222/udp" # P2P UDP
- "127.0.0.1:7300:7300" # metrics
- "127.0.0.1:6060:6060" # pprof
command: ["bash", "./consensus-entrypoint"]
volumes:
- ${HOST_CL_DATA_DIR:-./consensus-data}:/root/.base
env_file:
- ${NETWORK_ENV:-.env.mainnet} # Use .env.mainnet by default, override with .env.sepolia for testnet
prometheus:
image: prom/prometheus:latest
container_name: prometheus
restart: unless-stopped
logging:
driver: local
options:
max-size: "1G"
max-file: "5"
depends_on:
- execution
- node
ports:
- "127.0.0.1:9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
- ./prometheus-data:/prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--storage.tsdb.retention.time=${PROM_RETENTION_TIME:-30d}"
- "--storage.tsdb.retention.size=${PROM_RETENTION_SIZE:-40GiB}"
rss-bot:
build:
context: .
dockerfile: Dockerfile.rss
container_name: rss-bot
environment:
- RSS_BOT_URL=${RSS_BOT_URL}
- RSS_BOT_TG_BOT_TOKEN=${RSS_BOT_TG_BOT_TOKEN}
- RSS_BOT_TG_CHANNEL_ID=${RSS_BOT_TG_CHANNEL_ID}
- RSS_BOT_POLL_INTERVAL=${RSS_BOT_POLL_INTERVAL}
restart: unless-stopped