This repository has been archived by the owner on Mar 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose-dev.yml
148 lines (138 loc) · 3.33 KB
/
docker-compose-dev.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
version: '3.8'
x-logging:
&default-logging
driver: json-file
options:
max-size: '20m'
max-file: '5'
tag: '{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}'
services:
keys:
container_name: chainflip-keys
build:
context: .
target: keys
args:
CHAINFLIP_VERSION: 0.1.0
logging: *default-logging
volumes:
- ./config:/chainflip/config
geth:
# http://127.0.0.1:6060/debug/metrics/prometheus
container_name: chainflip-geth
image: ethereum/client-go:alltools-stable
logging: *default-logging
restart: always
networks:
- chainflip
ports:
- 30303:30303 # ETH Network Port
expose:
- 30301 # Metrics Port
- 8546 # WS Port
volumes:
- ./geth-data:/root/.ethereum
command: geth --rinkeby --syncmode "snap" --ws --ws.addr 0.0.0.0 --ws.origins "*" --metrics --metrics.addr 0.0.0.0 --metrics.port 30301 --pprof --pprof.addr 0.0.0.0 --pprof.port 30302
chainflip-node:
# http://127.0.0.1:9615
container_name: chainflip-node
build:
context: .
target: node
args:
CHAINFLIP_VERSION: 0.1.0
logging: *default-logging
restart: always
networks:
- chainflip
ports:
- 30333:30333 # Chainflip Network Port
expose:
- 9615 # Metrics Port
- 9933
- 9944 # RPC Port
volumes:
- ./config:/chainflip/config:ro
- ./chaindata-two:/chainflip/chaindata
depends_on:
- keys
- geth
chainflip-engine:
container_name: chainflip-engine
build:
context: .
target: engine
args:
CHAINFLIP_VERSION: 0.1.0
logging: *default-logging
restart: always
networks:
- chainflip
volumes:
- ./config:/chainflip/config:ro
- ./chaindata-two:/chainflip/chaindata:ro
depends_on:
- keys
- geth
- chainflip-node
prometheus:
# http://127.0.0.1:9090/graph
image: prom/prometheus
container_name: chainflip-prometheus
logging: *default-logging
restart: always
user: root
networks:
- chainflip
ports:
- 9090:9090
volumes:
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- ./prometheus-data:/prometheus
depends_on:
- geth
- chainflip-node
loki:
image: grafana/loki
container_name: chainflip-loki
logging: *default-logging
restart: always
user: root
networks:
- chainflip
expose:
- 3100
volumes:
- ./config:/chainflip/config:ro
command: -config.file=/chainflip/config/loki.yml
promtail:
image: grafana/promtail
container_name: chainflip-promtail
logging: *default-logging
restart: always
user: root
networks:
- chainflip
volumes:
- ./config:/chainflip/config:ro
- /var/lib/docker/containers:/var/lib/docker/containers:ro
command: -config.file=/chainflip/config/promtail.yml
grafana:
image: grafana/grafana-oss
container_name: chainflip-grafana
logging: *default-logging
restart: always
user: root
networks:
- chainflip
ports:
- 3000:3000
volumes:
- ./grafana-data:/var/lib/grafana/
- ./grafana-data/provisioning/:/etc/grafana/provisioning/:ro
depends_on:
prometheus:
condition: service_started
networks:
chainflip:
name: chainflip-net