1
1
# Copyright 2020 ChainSafe Systems
2
2
# SPDX-License-Identifier: LGPL-3.0-only
3
3
4
+ x-logging :
5
+ &default-logging
6
+ driver : " json-file"
7
+ options :
8
+ max-size : " 1m"
9
+ max-file : " 1"
10
+ tag : " {{.Name}}"
11
+
4
12
services :
5
13
mempool-stub :
6
14
image : ghcr.io/sygmaprotocol/beacon-api-stub
15
+ container_name : mempool-stub
16
+ labels :
17
+ logging : " promtail"
18
+ logging_jobname : " containerlogs"
7
19
volumes :
8
20
- " ./cfg/stubs:/stubs"
9
21
ports :
10
22
- 8882:8882
11
23
environment :
12
24
- STUB_DATA=/stubs/mempool.yml
25
+ logging : *default-logging
13
26
14
27
bitcoin :
15
28
# image: ruimarinho/bitcoin-core:latest
16
29
image : ghcr.io/sygmaprotocol/bitcoin
17
30
container_name : bitcoin
31
+ labels :
32
+ logging : " promtail"
33
+ logging_jobname : " containerlogs"
18
34
ports :
19
35
- " 18443:18443"
20
36
- " 18332:18332"
@@ -27,40 +43,52 @@ services:
27
43
volumes :
28
44
- ./cfg/entrypoint/entrypoint.sh:/cfg/entrypoint/entrypoint.sh
29
45
entrypoint : /cfg/entrypoint/entrypoint.sh
46
+ logging : *default-logging
30
47
31
48
evm1-1 :
32
49
image : ghcr.io/sygmaprotocol/sygma-solidity:evm1-v2.10.1
33
50
container_name : evm1-1
34
51
command : --chain.chainId 1337 --db data/ --blockTime 2 --m 'black toward wish jar twin produce remember fluid always confirm bacon slush' > /dev/null
35
- logging :
36
- driver : none
52
+ labels :
53
+ logging : " promtail"
54
+ logging_jobname : " containerlogs"
55
+ logging : *default-logging
37
56
ports :
38
57
- " 8545:8545"
39
58
40
59
evm2-1 :
41
60
image : ghcr.io/sygmaprotocol/sygma-solidity:evm2-v2.10.1
42
61
command : --chain.chainId 1338 --db data/ --blockTime 2 --m 'black toward wish jar twin produce remember fluid always confirm bacon slush' > /dev/null
43
62
container_name : evm2-1
44
- logging :
45
- driver : none
63
+ labels :
64
+ logging : " promtail"
65
+ logging_jobname : " containerlogs"
66
+ logging : *default-logging
46
67
ports :
47
68
- " 8547:8545"
48
69
49
70
substrate-pallet :
50
- container_name : substrate-pallet
51
71
image : " ghcr.io/sygmaprotocol/sygma-substrate-pallets:e2e-v0.3.1"
72
+ container_name : substrate-pallet
73
+ labels :
74
+ logging : " promtail"
75
+ logging_jobname : " containerlogs"
52
76
ports :
53
77
- " 9944:9944"
54
78
- " 9933:9933"
55
-
79
+ logging : *default-logging
80
+
56
81
ipfs0 :
57
- container_name : ipfs0
58
82
image : ipfs/kubo:release
83
+ container_name : ipfs0
84
+ labels :
85
+ logging : " promtail"
86
+ logging_jobname : " containerlogs"
59
87
ports :
60
- - " 4001:4001"
61
- - " 5002:5001"
62
- - " 8080:8080"
63
-
88
+ - " 4001:4001"
89
+ - " 5002:5001"
90
+ - " 8080:8080"
91
+ logging : *default-logging
64
92
65
93
relayer1 :
66
94
container_name : example_relayer1
@@ -71,9 +99,13 @@ services:
71
99
depends_on :
72
100
- evm1-1
73
101
- substrate-pallet
102
+ labels :
103
+ logging : " promtail"
104
+ logging_jobname : " containerlogs"
74
105
volumes :
75
106
- ./cfg:/cfg
76
107
restart : always
108
+ logging : *default-logging
77
109
78
110
relayer2 :
79
111
container_name : example_relayer2
@@ -84,9 +116,13 @@ services:
84
116
depends_on :
85
117
- evm1-1
86
118
- substrate-pallet
119
+ labels :
120
+ logging : " promtail"
121
+ logging_jobname : " containerlogs"
87
122
volumes :
88
123
- ./cfg:/cfg
89
124
restart : always
125
+ logging : *default-logging
90
126
91
127
relayer3 :
92
128
container_name : example_relayer3
@@ -97,15 +133,61 @@ services:
97
133
depends_on :
98
134
- evm1-1
99
135
- substrate-pallet
136
+ labels :
137
+ logging : " promtail"
138
+ logging_jobname : " containerlogs"
100
139
volumes :
101
140
- ./cfg:/cfg
102
141
restart : always
142
+ logging : *default-logging
103
143
104
144
otel-collector :
105
145
container_name : otel-collector
106
146
image : otel/opentelemetry-collector
107
147
command : ["--config=/etc/otel-collector-config.yml"]
148
+ labels :
149
+ logging : " promtail"
150
+ logging_jobname : " containerlogs"
108
151
volumes :
109
152
- ./cfg/otel-collector-config.yml:/etc/otel-collector-config.yml
110
153
ports :
111
154
- " 8889:8889" # Prometheus exporter metrics
155
+ logging : *default-logging
156
+
157
+ grafana :
158
+ image : grafana/grafana:11.3.0
159
+ container_name : grafana
160
+ ports :
161
+ - 3000:3000
162
+ volumes :
163
+ - ./grafana/datasources/grafana.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
164
+ - ./grafana/plugins/app.yaml:/etc/grafana/provisioning/plugins/app.yaml
165
+ environment :
166
+ - GF_AUTH_ANONYMOUS_ENABLED=true
167
+ - GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
168
+ - GF_AUTH_DISABLE_LOGIN_FORM=true
169
+ - GF_FEATURE_TOGGLES_ENABLE=accessControlOnCall lokiLogsDataplane
170
+ - GF_INSTALL_PLUGINS=grafana-lokiexplore-app
171
+ logging : *default-logging
172
+
173
+ loki :
174
+ image : grafana/loki:3.0.0
175
+ container_name : loki
176
+ ports :
177
+ - 3100:3100
178
+ command : -config.file=/etc/loki/loki.yaml
179
+ volumes :
180
+ - ./loki/loki.yaml:/etc/loki/loki.yaml
181
+ logging : *default-logging
182
+
183
+ promtail :
184
+ image : grafana/promtail:3.0.0
185
+ container_name : promtail
186
+ volumes :
187
+ - ./promtail/promtail.yaml:/etc/promtail/docker-config.yaml
188
+ - /var/lib/docker/containers:/var/lib/docker/containers:ro
189
+ - /var/run/docker.sock:/var/run/docker.sock
190
+ command : -config.file=/etc/promtail/docker-config.yaml
191
+ depends_on :
192
+ - loki
193
+ logging : *default-logging
0 commit comments