Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions services/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Modules in this directory include CS Studio/Phoebus middleware services:
* Alarm Logger
* Alarm Service
* Archive Engine
* Save-and-Restore
* Save-and-Restore

Additional middleware services are maintained in other repositories:
* Phoebus Logbook Service (Olog): https://github.com/Olog/phoebus-olog
Expand All @@ -20,9 +20,9 @@ Phoebus services depend:

* Elasticsearch
* Used by Save-and-Restore, Alarm Logger, Channel Finder and Olog
* MongoDB
* MongoDB
* Used by Olog (see https://github.com/Olog/phoebus-olog)
* Kafka + Zookeeper
* Kafka
* Used by Alarm Server and Alarm Logger

To launch the docker compose file in this directory (and docker compose files in sub-directories), user
Expand All @@ -43,7 +43,7 @@ MONGO_HOST_IP_ADDRESS=<host IP address>
Where
* ```<host IP address>```: the IP address where docker is launched.
* ```<path-to>/Accelerator.xml```: absolute path to the ```Accelerator.xml``` alarm config file.
* ```<path-to>/settings.properties```: absolute path to the ```settings.properties``` file.
* ```<path-to>/settings.properties```: absolute path to the ```settings.properties``` file.

The ```settings.properties``` file is needed to define the default EPICS protocol like so:
```org.phoebus.pv/default=pva```
Expand Down
37 changes: 12 additions & 25 deletions services/docker-compose-kafka-elastic-mongodb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,47 +21,34 @@ services:
- mongodata:/etc/mongo


zookeeper:
image: confluentinc/cp-zookeeper:latest
hostname: zookeeper
healthcheck:
test: nc -z localhost 2181 || exit -1
interval: 10s
timeout: 10s
retries: 3
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
KAFKA_HEAP_OPTS: "-Xmx512M"
ports:
- 2181:2181

kafka:
image: confluentinc/cp-kafka:latest
image: confluentinc/cp-kafka:8.3.2
hostname: kafka
depends_on:
zookeeper:
condition: service_healthy
ports:
- "9092:9092"
- "29092:29092"
environment:
CLUSTER_ID: OnFjIuViRfiRd9GdVjNEOg
KAFKA_NODE_ID: 1
KAFKA_PROCESS_ROLES: broker,controller
KAFKA_CONTROLLER_QUORUM_VOTERS: 1@kafka:29093
KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER
KAFKA_LISTENERS: INTERNAL://0.0.0.0:19092,EXTERNAL://0.0.0.0:9092,DOCKER://0.0.0.0:29092,CONTROLLER://kafka:29093
KAFKA_ADVERTISED_LISTENERS: INTERNAL://kafka:19092,EXTERNAL://${HOST_IP_ADDRESS}:9092,DOCKER://localhost:29092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT,DOCKER:PLAINTEXT
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT,DOCKER:PLAINTEXT,CONTROLLER:PLAINTEXT
KAFKA_LOG_DIRS: /var/lib/kafka/data
KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
KAFKA_BROKER_ID: 1
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_ALLOW_EVERYONE_IF_NO_ACL_FOUND: "true"
KAFKA_HEAP_OPTS: "-Xmx1G"
volumes:
- kafka_data:/var/lib/kafka/data

volumes:
es-data:
driver: local
mongodata:
driver: local



kafka_data:
Loading