blob: eece1554f874b9b2a95c08f94d622a4e4ca9f05f [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:
33 - ./prov_data/proserver.properties:/opt/app/datartr/etc/proserver.properties
sg481naaf2df82017-08-03 17:56:38 -040034# - ./prov_data/datarouter-prov-jar-with-dependencies.jar:/opt/app/datartr/lib/datarouter-prov-jar-with-dependencies.jar
Fiachra Corcoranbce219c2018-08-07 22:19:13 +010035 - ./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"]
sg481naaf2df82017-08-03 17:56:38 -040038 depends_on:
Fiachra Corcoranbce219c2018-08-07 22:19:13 +010039 mariadb_container:
Fiachra Corcoranfa1da982018-07-26 07:23:34 +010040 condition: service_healthy
Fiachra Corcoranbce219c2018-08-07 22:19:13 +010041 healthcheck:
42 test: ["CMD", "curl", "-f", "http://prov.datarouternew.com:8080/internal/prov"]
43 interval: 10s
44 timeout: 10s
45 retries: 5
sg481naaf2df82017-08-03 17:56:38 -040046 extra_hosts:
Fiachra Corcoranbce219c2018-08-07 22:19:13 +010047 - "node.datarouternew.com:172.100.0.4"
48 networks:
49 testing_net:
50 ipv4_address: 172.100.0.3
51
sg481naaf2df82017-08-03 17:56:38 -040052 datarouter-node:
Fiachra Corcoranbce219c2018-08-07 22:19:13 +010053 image: nexus3.onap.org:10003/onap/dmaap/datarouter-node
sg481naaf2df82017-08-03 17:56:38 -040054 container_name: datarouter-node
55 hostname: node.datarouternew.com
56 ports:
57 - "9443:8443"
58 - "9090:8080"
Fiachra Corcoranbce219c2018-08-07 22:19:13 +010059 volumes:
60 - ./node_data/node.properties:/opt/app/datartr/etc/node.properties
61 entrypoint: ["bash", "-c", "./startup.sh"]
sg481naaf2df82017-08-03 17:56:38 -040062 depends_on:
Fiachra Corcoranbce219c2018-08-07 22:19:13 +010063 datarouter-prov:
64 condition: service_healthy
sg481naaf2df82017-08-03 17:56:38 -040065 extra_hosts:
Fiachra Corcoranbce219c2018-08-07 22:19:13 +010066 - "prov.datarouternew.com:172.100.0.3"
67 networks:
68 testing_net:
69 ipv4_address: 172.100.0.4
sg481naaf2df82017-08-03 17:56:38 -040070
Fiachra Corcoranbce219c2018-08-07 22:19:13 +010071 mariadb_container:
72 image: mariadb:10.2.14
73 container_name: mariadb
sg481naaf2df82017-08-03 17:56:38 -040074 ports:
Fiachra Corcoranfa1da982018-07-26 07:23:34 +010075 - "3306:3306"
sg481naaf2df82017-08-03 17:56:38 -040076 environment:
Fiachra Corcoranbce219c2018-08-07 22:19:13 +010077 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
91networks:
92 testing_net:
93 driver: bridge
94 ipam:
95 driver: default
96 config:
97 - subnet: 172.100.0.0/16