blob: 19edc258a462a2732c63afd9cbcc5bc7bb270f9d [file] [log] [blame]
Lasse Kaihlavirtaa3f68d12021-05-21 12:59:08 +03001version: '3.3'
2
3services:
4 datarouter-prov:
5 image: nexus3.onap.org:10001/onap/dmaap/datarouter-prov:latest
6 container_name: datarouter-prov
7 hostname: dmaap-dr-prov
8 ports:
9 - "443:8443"
10 - "8443:8443"
11 - "8080:8080"
12 volumes:
13 - /var/tmp/provserver.properties:/opt/app/datartr/etc/provserver.properties
14 depends_on:
15 - mariadb
16 healthcheck:
17 test: ["CMD", "curl", "-f", "http://dmaap-dr-prov:8080/internal/prov"]
18 interval: 10s
19 timeout: 10s
20 retries: 5
21 networks:
22 pmmapper-network:
23 ipv4_address: $DR_PROV_IP
24 extra_hosts:
25 - "dmaap-dr-node:$DR_NODE_IP"
26 - "dcae-pm-mapper:$PMMAPPER_IP"
27
28 datarouter-node:
29 image: nexus3.onap.org:10001/onap/dmaap/datarouter-node:latest
30 container_name: datarouter-node
31 hostname: dmaap-dr-node
32 ports:
33 - "9443:8443"
34 - "9090:8080"
35 volumes:
36 - /var/tmp/node.properties:/opt/app/datartr/etc/node.properties
37 depends_on:
38 - datarouter-prov
39 networks:
40 pmmapper-network:
41 ipv4_address: $DR_NODE_IP
42 extra_hosts:
43 - "dmaap-dr-prov:$DR_PROV_IP"
44 - "dcae-pm-mapper:$PMMAPPER_IP"
45
46 node:
47 image: nexus3.onap.org:10001/node:10-slim
48 container_name: mr-simulator
49 volumes:
50 - /var/tmp/mrserver.js:/tmp/mrserver.js
51 command:
52 nodejs /tmp/mrserver.js
53 networks:
54 pmmapper-network:
55 ipv4_address: $NODE_IP
56
57 mariadb:
58 image: nexus3.onap.org:10001/mariadb:10.2.14
59 container_name: mariadb
60 ports:
61 - "3306:3306"
62 environment:
63 MYSQL_ROOT_PASSWORD: datarouter
64 MYSQL_DATABASE: datarouter
65 MYSQL_USER: datarouter
66 MYSQL_PASSWORD: datarouter
67 healthcheck:
68 test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "--silent"]
69 interval: 10s
70 timeout: 30s
71 retries: 5
72 networks:
73 pmmapper-network:
74 ipv4_address: $MARIADB_IP
75
76 consul:
77 container_name: consul
78 image: nexus3.onap.org:10001/consul:latest
79 networks:
80 pmmapper-network:
81 ipv4_address: $CONSUL_IP
82
83 cbs:
84 container_name: cbs
85 image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.configbinding.app-app:latest
86 environment:
87 CONSUL_HOST: $CONSUL_IP
88 networks:
89 pmmapper-network:
90 ipv4_address: $CBS_IP
91
92 pmmapper:
93 container_name: pmmapper
94 image: onap/org.onap.dcaegen2.services.pm-mapper:latest
95 ports:
96 - "8081:8081"
97 volumes:
98 - /var/tmp/:/opt/app/pm-mapper/etc/certs/
99 depends_on:
100 - datarouter-prov
101 environment:
102 CONFIG_BINDING_SERVICE_SERVICE_HOST: $CBS_IP
103 CONFIG_BINDING_SERVICE_SERVICE_PORT: 10000
104 HOSTNAME: pmmapper
105 networks:
106 pmmapper-network:
107 ipv4_address: $PMMAPPER_IP
108 extra_hosts:
109 - "dmaap-dr-node:$DR_NODE_IP"
110 - "message-router:$NODE_IP"
111
112
113networks:
114 pmmapper-network:
115 driver: bridge
116 ipam:
117 config:
118 - subnet: 172.18.0.0/16
119