-
Notifications
You must be signed in to change notification settings - Fork 125
/
docker-compose.yml
62 lines (57 loc) · 2.17 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
# This docker-compose.yml configuration contains:
# - a Gossamer node on the Kusama chain
# - a Prometheus server scrapping metrics from Gossamer
# - a Grafana server using the Prometheus server as source
#
# Prometheus and Grafana are both provisioned to give you a dashboard to play with.
# They are tailored for local development, and Grafana gives you anonymous admin access.
#
# You can run all of the containers with: `docker-compose up`
# Alternatively, you can run select containers with for example: `docker-compose up gossamer`
#
# To rebuild the Gossamer Docker image: `docker-compose build`
version: '3'
services:
gossamer:
image: chainsafe/gossamer
build: .
volumes:
# Remove with: docker volume rm gossamer
- gossamer:/data/gossamer
command:
- --base-path=/data/gossamer
- --chain=kusama
- --log=info
- --prometheus-external
- --prometheus-port=9876
- --pprof.enabled
ports:
- 6060:6060/tcp # Pprof server
- 7001:7001/tcp # Network port
- 8545:8545/tcp # RPC HTTP port
- 8546:8546/tcp # RPC Websocket port
expose:
- 9876/tcp # Prometheus metrics for Prometheus server
prometheus:
image: prom/prometheus
volumes:
- ./docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
# The following line can be uncommented to persist metrics data.
# - gossamer-prometheus:/prometheus
ports:
- 9090:9090/tcp # HTTP Web interface at http://localhost:9090/
expose:
- 9090/tcp # Prometheus metrics for Grafana
grafana:
image: grafana/grafana-oss
ports:
- 3000:3000/tcp # HTTP Web interface at http://localhost:3000/
volumes:
- ./docker/grafana/grafana.ini:/etc/grafana/grafana.ini:ro
- ./docker/grafana/provisioning:/etc/grafana/provisioning:ro
# The following line can be uncommented to persist modifications.
# - gossamer-grafana:/var/lib/grafana
volumes:
gossamer:
gossamer-prometheus:
gossamer-grafana: