This repository has been archived by the owner on Apr 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
opennms-cassandra-helm.yml
108 lines (100 loc) · 2.35 KB
/
opennms-cassandra-helm.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
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
version: '2.3'
volumes:
psql.data:
driver: local
opennms.data:
driver: local
opennms.etc:
driver: local
helm.data:
driver: local
cassandra1-data:
driver: local
networks:
opennms.net:
driver: bridge
services:
database:
container_name: opennms.psql
image: postgres:9.6
env_file:
- .postgres.env
networks:
- opennms.net
volumes:
- psql.data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 30s
timeout: 30s
retries: 3
ports:
- "5432:5432"
opennms:
container_name: opennms.hzn.core.web
image: opennms/horizon-core-web:bleeding
env_file:
- .opennms.env
- .postgres.env
networks:
- opennms.net
depends_on:
- cassandra1
- database
volumes:
- opennms.etc:/opt/opennms/etc
- opennms.data:/opennms-data
- ./etc-overlay:/opt/opennms-etc-overlay
# starting with cassandra option
command: ["-c"]
healthcheck:
test: ["CMD", "curl", "-f", "-I", "http://localhost:8980/opennms/login.jsp"]
interval: 1m
timeout: 5s
retries: 3
ports:
- "8980:8980"
- "8101:8101"
- "61616:61616"
- "162:162/udp"
# data stax cassandra
cassandra1:
container_name: cassandra1
image: cassandra:3.10
command: /bin/bash -c "sleep 1 && echo ' -- Pausing to let system catch up ... -->' && /docker-entrypoint.sh cassandra -f"
volumes:
- cassandra1-data:/var/lib/cassandra
- ./cassandra-conf/jvm.options:/etc/cassandra/jvm.options
networks:
- opennms.net
ports:
- "7000:7000"
- "7001:7001"
- "9042:9042"
- "9160:9160"
- "7199:7199"
healthcheck:
test: ["CMD-SHELL", "[ $$(nodetool statusgossip) = running ]"]
interval: 30s
timeout: 10s
retries: 5
helm:
container_name: opennms.helm
image: opennms/helm:latest
env_file:
- .helm.env
networks:
- opennms.net
depends_on:
- opennms
volumes:
- helm.data:/var/lib/grafana
- helm.data:/var/log/grafana
- helm.data:/etc/grafana
healthcheck:
test: ["CMD", "curl", "-f", "-I", "http://localhost:3000/login"]
interval: 30s
timeout: 3s
retries: 1
ports:
- "3000:3000"