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:
|
Fiachra Corcoran | e06737d | 2018-08-09 00:04:29 +0100 | [diff] [blame] | 33 | - ./prov_data/provserver.properties:/opt/app/datartr/etc/provserver.properties
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame] | 34 | - ./prov_data/addSubscriber.txt:/opt/app/datartr/addSubscriber.txt
|
| 35 | - ./prov_data/addFeed3.txt:/opt/app/datartr/addFeed3.txt
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 36 | depends_on:
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame] | 37 | mariadb_container:
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 38 | condition: service_healthy
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame] | 39 | healthcheck:
|
| 40 | test: ["CMD", "curl", "-f", "http://prov.datarouternew.com:8080/internal/prov"]
|
| 41 | interval: 10s
|
| 42 | timeout: 10s
|
| 43 | retries: 5
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 44 | extra_hosts:
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame] | 45 | - "node.datarouternew.com:172.100.0.4"
|
| 46 | networks:
|
| 47 | testing_net:
|
| 48 | ipv4_address: 172.100.0.3
|
| 49 |
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 50 | datarouter-node:
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame] | 51 | image: nexus3.onap.org:10003/onap/dmaap/datarouter-node
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 52 | container_name: datarouter-node
|
| 53 | hostname: node.datarouternew.com
|
| 54 | ports:
|
| 55 | - "9443:8443"
|
| 56 | - "9090:8080"
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame] | 57 | volumes:
|
| 58 | - ./node_data/node.properties:/opt/app/datartr/etc/node.properties
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 59 | depends_on:
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame] | 60 | datarouter-prov:
|
| 61 | condition: service_healthy
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 62 | extra_hosts:
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame] | 63 | - "prov.datarouternew.com:172.100.0.3"
|
| 64 | networks:
|
| 65 | testing_net:
|
| 66 | ipv4_address: 172.100.0.4
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 67 |
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame] | 68 | mariadb_container:
|
| 69 | image: mariadb:10.2.14
|
| 70 | container_name: mariadb
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 71 | ports:
|
Fiachra Corcoran | fa1da98 | 2018-07-26 07:23:34 +0100 | [diff] [blame] | 72 | - "3306:3306"
|
Fiachra Corcoran | e06737d | 2018-08-09 00:04:29 +0100 | [diff] [blame] | 73 | # volumes:
|
| 74 | # - ./database/sql_init_01.sql:/docker-entrypoint-initdb.d/sql_init_01.sql
|
sg481n | aaf2df8 | 2017-08-03 17:56:38 -0400 | [diff] [blame] | 75 | environment:
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame] | 76 | MYSQL_ROOT_PASSWORD: datarouter
|
| 77 | MYSQL_DATABASE: datarouter
|
| 78 | MYSQL_USER: datarouter
|
| 79 | MYSQL_PASSWORD: datarouter
|
| 80 | healthcheck:
|
Fiachra Corcoran | e06737d | 2018-08-09 00:04:29 +0100 | [diff] [blame] | 81 | test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "--silent"]
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame] | 82 | interval: 10s
|
Fiachra Corcoran | e06737d | 2018-08-09 00:04:29 +0100 | [diff] [blame] | 83 | timeout: 30s
|
Fiachra Corcoran | bce219c | 2018-08-07 22:19:13 +0100 | [diff] [blame] | 84 | retries: 5
|
| 85 |
|
| 86 | networks:
|
| 87 | testing_net:
|
| 88 | ipv4_address: 172.100.0.2
|
| 89 |
|
| 90 | networks:
|
| 91 | testing_net:
|
| 92 | driver: bridge
|
| 93 | ipam:
|
| 94 | driver: default
|
| 95 | config:
|
| 96 | - subnet: 172.100.0.0/16
|