[DMAAP-DR] Remove AAF/TLS phase 1
[dmaap/datarouter.git] / csit / scripts / dmaap-datarouter / docker-compose / docker-compose.yml
1 #
2 # ============LICENSE_START=======================================================
3 #  Copyright (C) 2019-21 Nordix Foundation.
4 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #      http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #
17 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
19 #
20 #
21 version: '2.1'
22 services:
23   datarouter-prov:
24     image: onap/dmaap/datarouter-prov:latest
25     container_name: datarouter-prov
26     hostname: dmaap-dr-prov
27     ports:
28     - "8080:8080"
29     volumes:
30     - ./provserver.properties:/opt/app/datartr/etc/provserver.properties
31     - ./logback.xml:/opt/app/datartr/etc/logback.xml
32     depends_on:
33       mariadb:
34         condition: service_healthy
35     healthcheck:
36       test: ["CMD", "curl", "-f", "http://dmaap-dr-prov:8080/internal/prov"]
37       interval: 10s
38       timeout: 30s
39       retries: 5
40     networks:
41       net:
42         aliases:
43         - dmaap-dr-prov
44
45   datarouter-node:
46     image: onap/dmaap/datarouter-node:latest
47     container_name: datarouter-node
48     hostname: dmaap-dr-node
49     ports:
50     - "9090:8080"
51     volumes:
52     - ./node.properties:/opt/app/datartr/etc/node.properties
53     - ./logback.xml:/opt/app/datartr/etc/logback.xml
54     depends_on:
55       datarouter-prov:
56         condition: service_healthy
57     networks:
58       net:
59         aliases:
60         - dmaap-dr-node
61
62   datarouter-subscriber:
63     image: onap/dmaap/datarouter-subscriber:latest
64     container_name: subscriber-node
65     hostname: subscriber.com
66     ports:
67     - "7070:7070"
68     volumes:
69     - ./subscriber.properties:/opt/app/subscriber/etc/subscriber.properties
70     - ./sub-logback.xml:/opt/app/subscriber/etc/logback.xml
71     networks:
72       net:
73         aliases:
74         - subscriber.com
75
76   datarouter-subscriber2:
77     image: onap/dmaap/datarouter-subscriber:latest
78     container_name: subscriber-node2
79     hostname: subscriber2.com
80     ports:
81     - "7071:7070"
82     volumes:
83     - ./subscriber.properties:/opt/app/subscriber/etc/subscriber.properties
84     - ./sub-logback.xml:/opt/app/subscriber/etc/logback.xml
85     networks:
86       net:
87         aliases:
88         - subscriber2.com
89
90   mariadb:
91     image: nexus3.onap.org:10001/library/mariadb:10.2.14
92     container_name: mariadb
93     hostname: datarouter-mariadb
94     ports:
95     - "3306:3306"
96     environment:
97       MYSQL_ROOT_PASSWORD: datarouter
98       MYSQL_DATABASE: datarouter
99       MYSQL_USER: datarouter
100       MYSQL_PASSWORD: datarouter
101     healthcheck:
102       test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "-u", "datarouter", "-pdatarouter", "--silent"]
103       interval: 10s
104       timeout: 30s
105       retries: 5
106     networks:
107       net:
108         aliases:
109         - datarouter-mariadb
110
111 networks:
112   net:
113     driver: bridge