blob: 6aee4dbd7071c24bc6cfdc719cfe133aaae2e484 [file] [log] [blame]
sg481naaf2df82017-08-03 17:56:38 -04001#-------------------------------------------------------------------------------
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 Corcoranfa1da982018-07-26 07:23:34 +010023version: '2.1'
Fiachra Corcoranbce219c2018-08-07 22:19:13 +010024services:
sg481naaf2df82017-08-03 17:56:38 -040025 datarouter-prov:
Fiachra Corcoranbce219c2018-08-07 22:19:13 +010026 image: nexus3.onap.org:10003/onap/dmaap/datarouter-prov
sg481naaf2df82017-08-03 17:56:38 -040027 container_name: datarouter-prov
28 hostname: prov.datarouternew.com
29 ports:
30 - "8443:8443"
31 - "8080:8080"
Fiachra Corcoranbce219c2018-08-07 22:19:13 +010032 volumes:
Fiachra Corcorane06737d2018-08-09 00:04:29 +010033 - ./prov_data/provserver.properties:/opt/app/datartr/etc/provserver.properties
Fiachra Corcoranbce219c2018-08-07 22:19:13 +010034 - ./prov_data/addSubscriber.txt:/opt/app/datartr/addSubscriber.txt
35 - ./prov_data/addFeed3.txt:/opt/app/datartr/addFeed3.txt
sg481naaf2df82017-08-03 17:56:38 -040036 depends_on:
Fiachra Corcoranbce219c2018-08-07 22:19:13 +010037 mariadb_container:
Fiachra Corcoranfa1da982018-07-26 07:23:34 +010038 condition: service_healthy
Fiachra Corcoranbce219c2018-08-07 22:19:13 +010039 healthcheck:
40 test: ["CMD", "curl", "-f", "http://prov.datarouternew.com:8080/internal/prov"]
41 interval: 10s
42 timeout: 10s
43 retries: 5
sg481naaf2df82017-08-03 17:56:38 -040044 extra_hosts:
Fiachra Corcoranbce219c2018-08-07 22:19:13 +010045 - "node.datarouternew.com:172.100.0.4"
46 networks:
47 testing_net:
48 ipv4_address: 172.100.0.3
49
sg481naaf2df82017-08-03 17:56:38 -040050 datarouter-node:
Fiachra Corcoranbce219c2018-08-07 22:19:13 +010051 image: nexus3.onap.org:10003/onap/dmaap/datarouter-node
sg481naaf2df82017-08-03 17:56:38 -040052 container_name: datarouter-node
53 hostname: node.datarouternew.com
54 ports:
55 - "9443:8443"
56 - "9090:8080"
Fiachra Corcoranbce219c2018-08-07 22:19:13 +010057 volumes:
58 - ./node_data/node.properties:/opt/app/datartr/etc/node.properties
sg481naaf2df82017-08-03 17:56:38 -040059 depends_on:
Fiachra Corcoranbce219c2018-08-07 22:19:13 +010060 datarouter-prov:
61 condition: service_healthy
sg481naaf2df82017-08-03 17:56:38 -040062 extra_hosts:
Fiachra Corcoranbce219c2018-08-07 22:19:13 +010063 - "prov.datarouternew.com:172.100.0.3"
64 networks:
65 testing_net:
66 ipv4_address: 172.100.0.4
sg481naaf2df82017-08-03 17:56:38 -040067
Fiachra Corcoranbce219c2018-08-07 22:19:13 +010068 mariadb_container:
69 image: mariadb:10.2.14
70 container_name: mariadb
sg481naaf2df82017-08-03 17:56:38 -040071 ports:
Fiachra Corcoranfa1da982018-07-26 07:23:34 +010072 - "3306:3306"
Fiachra Corcorane06737d2018-08-09 00:04:29 +010073# volumes:
74# - ./database/sql_init_01.sql:/docker-entrypoint-initdb.d/sql_init_01.sql
sg481naaf2df82017-08-03 17:56:38 -040075 environment:
Fiachra Corcoranbce219c2018-08-07 22:19:13 +010076 MYSQL_ROOT_PASSWORD: datarouter
77 MYSQL_DATABASE: datarouter
78 MYSQL_USER: datarouter
79 MYSQL_PASSWORD: datarouter
80 healthcheck:
Fiachra Corcorane06737d2018-08-09 00:04:29 +010081 test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "--silent"]
Fiachra Corcoranbce219c2018-08-07 22:19:13 +010082 interval: 10s
Fiachra Corcorane06737d2018-08-09 00:04:29 +010083 timeout: 30s
Fiachra Corcoranbce219c2018-08-07 22:19:13 +010084 retries: 5
85
86 networks:
87 testing_net:
88 ipv4_address: 172.100.0.2
89
90networks:
91 testing_net:
92 driver: bridge
93 ipam:
94 driver: default
95 config:
96 - subnet: 172.100.0.0/16