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