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