-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
72 lines (68 loc) · 1.94 KB
/
compose.yaml
File metadata and controls
72 lines (68 loc) · 1.94 KB
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
networks:
monitoring:
driver: bridge
services:
influxdb:
image: influxdb:2
container_name: influxdb
restart: unless-stopped
hostname: influxdb
networks:
- monitoring
ports:
- "8086:8086"
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=admin
- DOCKER_INFLUXDB_INIT_PASSWORD=password
- DOCKER_INFLUXDB_INIT_ORG=vechain
- DOCKER_INFLUXDB_INIT_BUCKET=vechain
- DOCKER_INFLUXDB_INIT_RETENTION=0
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=admin-token
volumes:
- ${PWD}/volumes/influxdb2:/var/lib/influxdb2
healthcheck:
test: "curl -f http://localhost:8086/ping"
interval: 5s
timeout: 10s
retries: 5
grafana:
user: "0"
image: grafana/grafana:10.4.19 # same as AWS version
container_name: grafana
restart: unless-stopped
networks:
- monitoring
ports:
- 3000:3000
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_DEFAULT_APP_MODE=development
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=admin-token
volumes:
- ${PWD}/grafana/config/data-sources.yaml:/etc/grafana/provisioning/datasources/grafana-data-sources.yaml:ro
- ${PWD}/grafana/config/dashboard.yaml:/etc/grafana/provisioning/dashboards/main.yaml:ro
- ${PWD}/grafana/config/dashboards:/var/lib/grafana/dashboards:ro
- ${PWD}/volumes/grafana:/var/lib/grafana
thorflux:
build:
context: .
dockerfile: Dockerfile
container_name: thorflux
restart: unless-stopped
depends_on:
influxdb:
condition: service_healthy
networks:
- monitoring
environment:
- THOR_URL=https://mainnet.vechain.org
- INFLUX_URL=http://influxdb:8086
- THOR_BLOCKS=200
- INFLUX_USERNAME=admin
- INFLUX_PASSWORD=password
- INFLUX_ORG=vechain
- INFLUX_BUCKET=vechain
volumes:
grafana-plugin-dist: