Niranjana | 3d457a0 | 2020-08-12 13:33:22 +0530 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
| 2 | # son-handler |
| 3 | # ================================================================================ |
| 4 | # Copyright (C) 2020 Wipro Limited. |
| 5 | # ============================================================================== |
| 6 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | # you may not use this file except in compliance with the License. |
| 8 | # You may obtain a copy of the License at |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, software |
| 13 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | # See the License for the specific language governing permissions and |
| 16 | # limitations under the License. |
| 17 | # ============LICENSE_END========================================================= |
| 18 | |
| 19 | version: '3.3' |
| 20 | networks: |
| 21 | sonhms-default: |
| 22 | driver: bridge |
| 23 | driver_opts: |
| 24 | com.docker.network.driver.mtu: 1400 |
| 25 | |
| 26 | services: |
| 27 | zookeeper: |
| 28 | image: wurstmeister/zookeeper |
| 29 | container_name: zookeeper |
| 30 | ports: |
| 31 | - "2181:2181" |
| 32 | networks: |
| 33 | - sonhms-default |
| 34 | kafka: |
| 35 | image: wurstmeister/kafka |
| 36 | container_name: kafka |
| 37 | ports: |
| 38 | - "9092:9092" |
| 39 | environment: |
| 40 | KAFKA_ADVERTISED_HOST_NAME: "kafka" |
| 41 | KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true' |
| 42 | KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181" |
| 43 | KAFKA_ADVERTISED_LISTENERS: "PLAINTEXT://kafka:9092" |
| 44 | volumes: |
| 45 | - /var/run/docker.sock:/var/run/docker.sock |
| 46 | depends_on: |
| 47 | - zookeeper |
| 48 | networks: |
| 49 | - sonhms-default |
| 50 | dmaap: |
| 51 | image: nexus3.onap.org:10001/onap/dmaap/dmaap-mr:1.1.8 |
| 52 | container_name: dmaap |
| 53 | ports: |
| 54 | - "3904:3904" |
| 55 | - "3905:3905" |
| 56 | volumes: |
| 57 | - ./config/dmaap/MsgRtrApi.properties:/appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties |
| 58 | depends_on: |
| 59 | - zookeeper |
| 60 | - kafka |
| 61 | networks: |
| 62 | - sonhms-default |
| 63 | postgres: |
| 64 | image: 'postgres:12-alpine' |
| 65 | container_name: sonhms-postgres |
| 66 | hostname: postgres |
| 67 | environment: |
| 68 | - POSTGRES_USER=sonhms_admin |
| 69 | - POSTGRES_PASSWORD=postgres |
| 70 | - POSTGRES_DB=sonhms |
| 71 | ports: |
| 72 | - 5432 |
| 73 | healthcheck: |
| 74 | test: ["CMD", "nc", "-z", "localhost", "5432"] |
| 75 | interval: 30s |
| 76 | timeout: 10s |
| 77 | retries: 5 |
| 78 | networks: |
| 79 | - sonhms-default |
| 80 | sonhms: |
Niranjana | 9eb8c7c | 2020-08-27 17:55:33 +0530 | [diff] [blame] | 81 | image: "nexus3.onap.org:10003/onap/org.onap.dcaegen2.services.son-handler:latest" |
Niranjana | 3d457a0 | 2020-08-12 13:33:22 +0530 | [diff] [blame] | 82 | container_name: sonhms.onap |
| 83 | hostname: sonhms |
| 84 | environment: |
| 85 | - STANDALONE=true |
| 86 | - CONFIG_FILE=/etc/config_all.json |
| 87 | ports: |
| 88 | - "8080:8080" |
| 89 | volumes: |
| 90 | - ./config/sonhms/config_all.json:/etc/config_all.json |
| 91 | depends_on: |
| 92 | - postgres |
| 93 | networks: |
| 94 | - sonhms-default |