-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
71 lines (65 loc) · 1.52 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
# Docker Compose file to start up a polkadot node with prometheus
# and grafana to be able to easily run and monitor it.
#
# Exposes the RPC of the node so that you can connect Polkadot.js Apps to it.
#
# Usage:
#
# 1. Start networks and containers: `docker-compose up`
#
# 2. Reach:
# - polkadot node: localhost:9944
# - polkadotjs ui: localhost:3000
# - polkadot prometheus endpoint: localhost:9945
# - grafana: localhost:3001
# - prometheus: localhost:9090
version: "3.7"
services:
polkadot:
ports:
- "9944:9944"
- "9615:9615"
image: parity/polkadot
volumes:
- ./db/:/etc/polkadot/db/
command:
- "--name"
- "XYZ"
- "--base-path"
- "/etc/polkadot/db/"
# Not only bind to localhost.
- "--unsafe-ws-external"
- "--unsafe-rpc-external"
- "--no-telemetry" # Comment out if you want to show up on telemetry
- "--rpc-cors"
- "all"
- "--prometheus-external"
- "--execution"
- "native"
- "--wasm-execution"
- "compiled"
ui:
build:
context: ./ui
dockerfile: PolkadotJS-Dockerfile
ports:
- "3000:80"
prometheus:
image: prom/prometheus
ports:
- "9090:9090"
links:
- polkadot:polkadot
volumes:
- ./prometheus/:/etc/prometheus/
restart: always
grafana:
image: grafana/grafana
user: "104"
depends_on:
- prometheus
ports:
- 3001:3000
volumes:
- ./grafana/provisioning/:/etc/grafana/provisioning
restart: always