sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 1 | #-------------------------------------------------------------------------------
|
| 2 | # ============LICENSE_START==================================================
|
| 3 | # * org.onap.dmaap
|
| 4 | # * ===========================================================================
|
| 5 | # * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
|
| 6 | # * ===========================================================================
|
| 7 | # * Licensed under the Apache License, Version 2.0 (the "License");
|
| 8 | # * you may not use this file except in compliance with the License.
|
| 9 | # * You may obtain a copy of the License at
|
| 10 | # *
|
| 11 | # * http://www.apache.org/licenses/LICENSE-2.0
|
| 12 | # *
|
| 13 | # * Unless required by applicable law or agreed to in writing, software
|
| 14 | # * distributed under the License is distributed on an "AS IS" BASIS,
|
| 15 | # * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 16 | # * See the License for the specific language governing permissions and
|
| 17 | # * limitations under the License.
|
| 18 | # * ============LICENSE_END====================================================
|
| 19 | # *
|
| 20 | # * ECOMP is a trademark and service mark of AT&T Intellectual Property.
|
| 21 | # *
|
| 22 | #-------------------------------------------------------------------------------
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 23 | version: '2.1'
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame^] | 24 | services:
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 25 | datarouter-prov:
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame^] | 26 | image: nexus3.onap.org:10003/onap/dmaap/datarouter-prov
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 27 | container_name: datarouter-prov
|
| 28 | hostname: prov.datarouternew.com
|
| 29 | ports:
|
| 30 | - "8443:8443"
|
| 31 | - "8080:8080"
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame^] | 32 | volumes:
|
| 33 | - ./prov_data/proserver.properties:/opt/app/datartr/etc/proserver.properties
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 34 | # - ./prov_data/datarouter-prov-jar-with-dependencies.jar:/opt/app/datartr/lib/datarouter-prov-jar-with-dependencies.jar
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame^] | 35 | - ./prov_data/addSubscriber.txt:/opt/app/datartr/addSubscriber.txt
|
| 36 | - ./prov_data/addFeed3.txt:/opt/app/datartr/addFeed3.txt
|
| 37 | entrypoint: ["bash", "-c", "./startup.sh"]
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 38 | depends_on:
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame^] | 39 | mariadb_container:
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 40 | condition: service_healthy
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame^] | 41 | healthcheck:
|
| 42 | test: ["CMD", "curl", "-f", "http://prov.datarouternew.com:8080/internal/prov"]
|
| 43 | interval: 10s
|
| 44 | timeout: 10s
|
| 45 | retries: 5
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 46 | extra_hosts:
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame^] | 47 | - "node.datarouternew.com:172.100.0.4"
|
| 48 | networks:
|
| 49 | testing_net:
|
| 50 | ipv4_address: 172.100.0.3
|
| 51 |
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 52 | datarouter-node:
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame^] | 53 | image: nexus3.onap.org:10003/onap/dmaap/datarouter-node
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 54 | container_name: datarouter-node
|
| 55 | hostname: node.datarouternew.com
|
| 56 | ports:
|
| 57 | - "9443:8443"
|
| 58 | - "9090:8080"
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame^] | 59 | volumes:
|
| 60 | - ./node_data/node.properties:/opt/app/datartr/etc/node.properties
|
| 61 | entrypoint: ["bash", "-c", "./startup.sh"]
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 62 | depends_on:
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame^] | 63 | datarouter-prov:
|
| 64 | condition: service_healthy
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 65 | extra_hosts:
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame^] | 66 | - "prov.datarouternew.com:172.100.0.3"
|
| 67 | networks:
|
| 68 | testing_net:
|
| 69 | ipv4_address: 172.100.0.4
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 70 |
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame^] | 71 | mariadb_container:
|
| 72 | image: mariadb:10.2.14
|
| 73 | container_name: mariadb
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 74 | ports:
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 75 | - "3306:3306"
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 76 | environment:
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame^] | 77 | MYSQL_ROOT_PASSWORD: datarouter
|
| 78 | MYSQL_DATABASE: datarouter
|
| 79 | MYSQL_USER: datarouter
|
| 80 | MYSQL_PASSWORD: datarouter
|
| 81 | healthcheck:
|
| 82 | test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
|
| 83 | interval: 10s
|
| 84 | timeout: 10s
|
| 85 | retries: 5
|
| 86 |
|
| 87 | networks:
|
| 88 | testing_net:
|
| 89 | ipv4_address: 172.100.0.2
|
| 90 |
|
| 91 | networks:
|
| 92 | testing_net:
|
| 93 | driver: bridge
|
| 94 | ipam:
|
| 95 | driver: default
|
| 96 | config:
|
| 97 | - subnet: 172.100.0.0/16
|