diff options
author | Brinda Santh <bs2796@att.com> | 2019-12-18 15:19:58 -0500 |
---|---|---|
committer | KAPIL SINGAL <ks220y@att.com> | 2019-12-19 20:48:38 +0000 |
commit | 10c2988b51c764e62d8eeed52b254d363512eb24 (patch) | |
tree | 2c93f00798168375d083ee35fed74cfe49669d02 /ms/blueprintsprocessor/application/src/main | |
parent | 20b07e37990f1926d7b3cb45542b76c0336f9f19 (diff) |
Cluster communication channels
Add NATS property and library services both .
NATS Messaging Services with Token Auth and TLS Auth implementation
Docker Compose for NATS Streaming instance.
Documentation : https://docs.nats.io/
Issue-ID: CCSDK-2007
Signed-off-by: Brinda Santh <bs2796@att.com>
Change-Id: Ieebaa8f2b18ae89d02a4f38a8027eda495a9db43
Diffstat (limited to 'ms/blueprintsprocessor/application/src/main')
-rw-r--r-- | ms/blueprintsprocessor/application/src/main/dc/docker-compose-cluster.yaml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ms/blueprintsprocessor/application/src/main/dc/docker-compose-cluster.yaml b/ms/blueprintsprocessor/application/src/main/dc/docker-compose-cluster.yaml index f4b4b7995..f43f19c52 100644 --- a/ms/blueprintsprocessor/application/src/main/dc/docker-compose-cluster.yaml +++ b/ms/blueprintsprocessor/application/src/main/dc/docker-compose-cluster.yaml @@ -16,9 +16,21 @@ services: MYSQL_DATABASE: sdnctl MYSQL_USER: sdnctl MYSQL_PASSWORD: sdnctl + nats: + image: nats-streaming:latest + container_name: nats + hostname: nats + command: "-cid cds-cluster --auth tokenAuth -store file -dir store-nats-1 --cluster_node_id nats-1" + networks: + - cds-network + ports: + - "8222:8222" + - "4222:4222" + restart: always cds-controller-1: depends_on: - db + - nats image: onap/ccsdk-blueprintsprocessor:latest container_name: cds-controller-1 hostname: cds-controller-1 @@ -42,6 +54,7 @@ services: CLUSTER_MEMBERS: cds-controller-1,resource-resolution-1 CLUSTER_STORAGE_PATH: /opt/app/onap/config/cluster #CLUSTER_CONFIG_FILE: /opt/app/onap/config/atomix/atomix-multicast.conf + NATS_HOSTS: nats://nats:4222 APPLICATIONNAME: cds-controller BUNDLEVERSION: 1.0.0 APP_CONFIG_HOME: /opt/app/onap/config @@ -50,6 +63,7 @@ services: resource-resolution-1: depends_on: - db + - nats image: onap/ccsdk-blueprintsprocessor:latest container_name: resource-resolution-1 hostname: resource-resolution-1 @@ -72,6 +86,7 @@ services: CLUSTER_MEMBERS: cds-controller-1,resource-resolution-1 CLUSTER_STORAGE_PATH: /opt/app/onap/config/cluster #CLUSTER_CONFIG_FILE: /opt/app/onap/config/atomix/atomix-multicast.conf + NATS_HOSTS: nats://nats:4222 APPLICATIONNAME: resource-resolution BUNDLEVERSION: 1.0.0 APP_CONFIG_HOME: /opt/app/onap/config |