forked from slaclab/nalms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
163 lines (163 loc) · 6.03 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
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
version: "3.0"
services:
zookeeper:
image: tidacs/nalms-zookeeper:v1.1
ports:
- "2181:2181"
environment:
ZOOKEEPER_CONFIG: /tmp/zoo.cfg
volumes:
- "./examples/demo/config/zoo.cfg:/tmp/zoo.cfg"
kafka:
image: tidacs/nalms-kafka:v1.1
depends_on:
- zookeeper
ports:
- "19092:19092"
environment:
BROKER_ID: 0
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,CONNECTIONS_FROM_HOST://localhost:19092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,CONNECTIONS_FROM_HOST:PLAINTEXT
KAFKA_LISTENERS: PLAINTEXT://kafka:9092,CONNECTIONS_FROM_HOST://0.0.0.0:19092
ZOOKEEPER_CONNECT: zookeeper:2181
volumes:
- "./examples/heart_of_gold/config/server.properties:/opt/kafka/server.properties"
links:
- zookeeper
deploy:
resources:
limits:
memory: 8G
reservations:
memory: 8G
kafka1:
image: tidacs/nalms-kafka:v1.1
depends_on:
- zookeeper
ports:
- "19093:19093"
environment:
BROKER_ID: 1
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka1:9092,CONNECTIONS_FROM_HOST://localhost:19093
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,CONNECTIONS_FROM_HOST:PLAINTEXT
KAFKA_LISTENERS: PLAINTEXT://kafka1:9092,CONNECTIONS_FROM_HOST://0.0.0.0:19093
ZOOKEEPER_CONNECT: zookeeper:2181
volumes:
- "./examples/heart_of_gold/config/server.properties:/opt/kafka/server.properties"
links:
- zookeeper
deploy:
resources:
limits:
memory: 8G
reservations:
memory: 8G
kafka2:
image: tidacs/nalms-kafka:v1.1
depends_on:
- zookeeper
ports:
- "19094:19094"
environment:
BROKER_ID: 2
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka2:9092,CONNECTIONS_FROM_HOST://localhost:19094
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,CONNECTIONS_FROM_HOST:PLAINTEXT
KAFKA_LISTENERS: PLAINTEXT://kafka2:9092,CONNECTIONS_FROM_HOST://0.0.0.0:19094
ZOOKEEPER_CONNECT: zookeeper:2181
volumes:
- "./examples/heart_of_gold/config/server.properties:/opt/kafka/server.properties"
links:
- zookeeper
deploy:
resources:
limits:
memory: 8G
reservations:
memory: 8G
phoebus-alarm-server:
image: tidacs/nalms-phoebus-alarm-server:v1.1
links:
- kafka
- example-ioc
depends_on:
- kafka
volumes:
- "./examples/heart_of_gold/heart_of_gold.xml:/tmp/nalms/heart_of_gold.xml"
- "./examples/heart_of_gold/config/alarm_server.properties:/opt/nalms/config/alarm_server.properties"
command: start-server HeartOfGold /tmp/nalms/heart_of_gold.xml
environment:
KAFKA_BOOTSTRAP: kafka:9092
EPICS_CA_ADDR_LIST: "example-ioc"
ALARM_IOC: "false"
EPICS_CA_SERVER_PORT: 5064
EPICS_CA_REPEATER_PORT: 5065
ALARM_SERVER_PROPERTIES: "/opt/nalms/config/alarm_server.properties"
elasticsearch:
image: tidacs/nalms-elasticsearch:v1.1
ports:
- "9200:9200"
volumes:
- "./examples/heart_of_gold/config/elasticsearch:/usr/share/elasticsearch/config"
environment:
node.name: node01
cluster.name: es-cluster-7
discovery.type: single-node
ES_JAVA_OPTS: "-Xms128m -Xmx128m"
ES_HOST: localhost
ES_PORT: 9200
KAFKA_HOST: kafka
KAFKA_PORT: 9092
grafana:
image: tidacs/nalms-grafana:v1.1
ports:
- '3000:3000'
links:
- elasticsearch
volumes:
- "./examples/heart_of_gold/config/dashboards:/var/lib/grafana/dashboards"
- "./examples/heart_of_gold/config/datasource.yml:/etc/grafana/provisioning/datasources/all.yml"
- "./examples/heart_of_gold/config/grafana.ini:/etc/grafana/config.ini"
environment:
CONFIG_NAME: HeartOfGold
ES_HOST: elasticsearch
ES_PORT: 9200
phoebus-alarm-logger:
image: tidacs/nalms-phoebus-alarm-logger:v1.1
links:
- elasticsearch
depends_on:
- elasticsearch
- kafka
- phoebus-alarm-server
environment:
ES_HOST: elasticsearch
ES_PORT: 9200
BOOTSTRAP_SERVERS: kafka:9092,kafka1:9092,kafka2:9092
ALARM_LOGGER_PROPERTIES: /opt/nalms/config/alarm_logger.properties
volumes:
- "./examples/heart_of_gold/heart_of_gold.xml:/tmp/nalms/heart_of_gold.xml"
- "./examples/heart_of_gold/config/alarm_logger.properties:/opt/nalms/config/alarm_logger.properties"
command: start-logger HeartOfGold /tmp/nalms/heart_of_gold.xml
example-ioc:
image: tidacs/nalms-example-ioc:v1.1
ports:
- "5075:5065/tcp"
- "5074:5064/tcp"
- "5075:5065/udp"
- "5074:5064/udp"
environment:
EPICS_CA_SERVER_PORT: 5064
EPICS_CA_REPEATER_PORT: 5065
cruise-control:
image: tidacs/nalms-cruise-control:v1.1
ports:
- "9090:9090"
environment:
BOOTSTRAP_SERVERS: kafka:9092,kafka1:9092,kafka2:9092
ZOOKEEPER_CONNECT: zookeeper:2181
CRUISE_CONTROL_PROPERTIES: /opt/cruise-control/config/cruisecontrol.properties
volumes:
- "./examples/heart_of_gold/config/cruisecontrol.properties:/opt/cruise-control/config/cruisecontrol.properties"
links:
- kafka
- zookeeper