-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
131 lines (127 loc) · 3.71 KB
/
docker-compose.yaml
File metadata and controls
131 lines (127 loc) · 3.71 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
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
services:
node1:
build:
context: .
dockerfile: Dockerfile
image: trieve/threshold
environment:
- KEY_PASSWORD=supersecret
- IS_TESTNET=true
- RUST_LOG=info
entrypoint: "/app/cli run --key-file-path /app/configs/node_1.json --config-file-path /app/configs/node_1.yaml --use-mock-oracle"
ports:
- "50051:50051"
volumes:
- ./keys/5_nodes/node_1/node_1.json:/app/configs/node_1.json
- ./keys/5_nodes/node_1/node_1.yaml:/app/configs/node_1.yaml
- ./nodedb_1.db:/app/nodedb.db
networks:
- vaultnet
node2:
build:
context: .
dockerfile: Dockerfile
image: trieve/threshold
environment:
- KEY_PASSWORD=supersecret
- IS_TESTNET=true
- RUST_LOG=info
entrypoint: "/app/cli run --key-file-path /app/configs/node_2.json --config-file-path /app/configs/node_2.yaml --use-mock-oracle"
ports:
- "50052:50051"
volumes:
- ./keys/5_nodes/node_2/node_2.json:/app/configs/node_2.json
- ./keys/5_nodes/node_2/node_2.yaml:/app/configs/node_2.yaml
- ./nodedb_2.db:/app/nodedb.db
networks:
- vaultnet
node3:
build:
context: .
dockerfile: Dockerfile
image: trieve/threshold
environment:
- KEY_PASSWORD=supersecret
- IS_TESTNET=true
- RUST_LOG=info
entrypoint: "/app/cli run --key-file-path /app/configs/node_3.json --config-file-path /app/configs/node_3.yaml --use-mock-oracle"
ports:
- "50053:50051"
volumes:
- ./keys/5_nodes/node_3/node_3.json:/app/configs/node_3.json
- ./keys/5_nodes/node_3/node_3.yaml:/app/configs/node_3.yaml
- ./nodedb_3.db:/app/nodedb.db
networks:
- vaultnet
node4:
build:
context: .
dockerfile: Dockerfile
image: trieve/threshold
environment:
- KEY_PASSWORD=supersecret
- IS_TESTNET=true
- RUST_LOG=info
entrypoint: "/app/cli run --key-file-path /app/configs/node_4.json --config-file-path /app/configs/node_4.yaml --use-mock-oracle"
ports:
- "50054:50051"
volumes:
- ./keys/5_nodes/node_4/node_4.json:/app/configs/node_4.json
- ./keys/5_nodes/node_4/node_4.yaml:/app/configs/node_4.yaml
- ./nodedb_4.db:/app/nodedb.db
networks:
- vaultnet
node5:
build:
context: .
dockerfile: Dockerfile
image: trieve/threshold
environment:
- KEY_PASSWORD=supersecret
- IS_TESTNET=true
- RUST_LOG=info
entrypoint: "/app/cli run --key-file-path /app/configs/node_5.json --config-file-path /app/configs/node_5.yaml --use-mock-oracle"
ports:
- "50055:50051"
volumes:
- ./keys/5_nodes/node_5/node_5.json:/app/configs/node_5.json
- ./keys/5_nodes/node_5/node_5.yaml:/app/configs/node_5.yaml
- ./nodedb_5.db:/app/nodedb.db
networks:
- vaultnet
prometheus:
image: prom/prometheus:v2.36.2
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
ports:
- 9090:9090
networks:
- vaultnet
restart: always
grafana:
image: grafana/grafana
user: "472"
depends_on:
- prometheus
ports:
- 3000:3000
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning/:/etc/grafana/provisioning/
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
- ./grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards
env_file:
- ./grafana/config.monitoring
networks:
- vaultnet
restart: always
networks:
vaultnet:
driver: bridge
volumes:
prometheus_data:
grafana_data: