-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
66 lines (60 loc) · 1.43 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
version: '3.6'
services:
influxdb:
image: 'influxdb:1.6.1-alpine'
networks:
- 'internal'
volumes:
- type: 'volume'
source: 'ethereum-monitor-influxdb'
target: '/var/lib/influxdb'
influxdb-config:
command: '/init-influxdb.sh'
environment:
INFLUXDB_ADMIN_USER: 'root'
INFLUXDB_ADMIN_PASSWORD: 'root'
image: 'influxdb:1.6.1-alpine'
networks:
- 'internal'
volumes:
- type: 'volume'
source: 'ethereum-monitor-influxdb'
target: '/var/lib/influxdb'
grafana:
image: 'grafana/grafana:5.2.3'
networks:
- 'internal'
- 'external'
ports:
- target: '3000'
published: '3000'
protocol: 'tcp'
volumes:
- type: 'volume'
source: 'ethereum-monitor-grafana'
target: '/var/lib/grafana'
ethereum-monitor:
build: '.'
image: 'zoltu/ethereum-monitor'
environment:
ETHEREUM_URI: 'https://parity.zoltu.io'
INFLUX_HOST: 'influxdb'
INFLUX_DATABASE_NAME: 'Ethereum'
INFLUX_USER: 'root'
INFLUX_PASS: 'root'
networks:
- 'internal'
- 'external'
# uncomment to allow for attaching a NodeJS debugger to the running script
# ports:
# - target: '9229'
# published: '9229'
# protocol: 'tcp'
networks:
internal:
internal: true
external:
internal: false
volumes:
ethereum-monitor-influxdb:
ethereum-monitor-grafana: