This repository has been archived by the owner on Apr 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose-syslog.yml
120 lines (120 loc) · 3.47 KB
/
docker-compose-syslog.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
version: '3.8'
services:
node:
image: ghcr.io/gnosischain/gbc-nimbus:v22.5.1
user: root
hostname: node
restart: always
command: |
--network=gnosis
--web3-url=$XDAI_RPC_URL
--log-level=$LOG_LEVEL
--data-dir=/home/.eth2/beaconchaindata
--validators-dir=/root/sbc/validators/validators
--secrets-dir=/root/sbc/validators/secrets
--non-interactive
--metrics
--metrics-address=0.0.0.0
--rest
--rest-address=0.0.0.0
--rest-allow-origin=*
--doppelganger-detection
--nat=extip:$PUBLIC_IP
--max-peers=$TARGET_PEERS
--graffiti=${OVERRIDE_GRAFFITI:-Nimbus/v22.5.1-f7eff8f}
--tcp-port=13000
--udp-port=12000
ports:
- '12000:12000/udp'
- '13000:13000'
- '127.0.0.1:5052:5052'
volumes:
- ./node_db:/home/.eth2/beaconchaindata
- ./validators/validators:/root/sbc/validators/validators
- ./validators/secrets:/root/sbc/validators/secrets
logging:
driver: syslog
options: { tag: '{{.Name}}/{{.ID}}' }
trusted-sync:
image: ghcr.io/gnosischain/gbc-nimbus:v22.5.1
user: root
command: |
trustedNodeSync
--network=gnosis
--web3-url=$XDAI_RPC_URL
--log-level=$LOG_LEVEL
--data-dir=/home/.eth2/beaconchaindata
--non-interactive
--backfill=false
--trusted-node-url=$GBC_RPC_URL
ports:
- '12000:12000/udp'
- '13000:13000'
volumes:
- ./node_db:/home/.eth2/beaconchaindata
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "1"
validator-import:
image: ghcr.io/gnosischain/gbc-nimbus:v22.5.1
user: root
command: |
deposits import /root/sbc/keys
--data-dir=/root/sbc/validators
tty: true
stdin_open: true
volumes:
- ./keys:/root/sbc/keys
- ./validators/validators:/root/sbc/validators/validators
- ./validators/secrets:/root/sbc/validators/secrets
validator-import-slashing-protection:
image: ghcr.io/gnosischain/gbc-nimbus:v22.5.1
user: root
command: |
slashingdb import /root/sbc/config/slashing_protection.json
--validators-dir=/root/sbc/validators/validators
volumes:
- ./config:/root/sbc/config
- ./validators/validators:/root/sbc/validators/validators
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "1"
validator-export-slashing-protection:
image: ghcr.io/gnosischain/gbc-nimbus:v22.5.1
user: root
command: |
slashingdb export /root/sbc/config/slashing_protection.json
--validators-dir=/root/sbc/validators/validators
volumes:
- ./config:/root/sbc/config
- ./validators/validators:/root/sbc/validators/validators
prometheus:
image: prom/prometheus:latest
restart: always
depends_on:
- node
command: |
--web.listen-address=0.0.0.0:9090
--config.file=/etc/prometheus/prometheus.yml
--storage.tsdb.path=/prometheus
--web.console.libraries=/usr/share/prometheus/console_libraries
--web.console.templates=/usr/share/prometheus/consoles
ports:
- '9090:9090'
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus-data:/prometheus
- type: bind
source: ./prometheus/scrape-targets
target: /prometheus/targets
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "1"
volumes:
prometheus-data: