00a2af1d1442992811e2bea74008c48ea76467a4
[integration/csit.git] / tests / dcaegen2 / prh-testcases / resources / docker-compose.yml
1 version: "2.2"
2 services:
3   prh:
4     image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.prh.prh-app-server:latest
5     ports:
6       - "8100:8100"
7       - "8433:8433"
8     volumes:
9       - ./simulator/certs:/tmp/certs
10     environment:
11       - HOSTNAME=dcae-prh
12       - CONSUL_HOST                # not in use, but still required by SDK - should be removed later on
13       - CONFIG_BINDING_SERVICE
14       - CONFIG_BINDING_SERVICE_SERVICE_PORT
15     container_name: prh
16     depends_on:
17       cbs:
18         condition: service_healthy
19       dmaap-mr:
20         condition: service_started
21       aai:
22         condition: service_started
23
24   dmaap-mr:
25     build:
26       context: simulator
27       dockerfile: DMaaP_simulator
28     ports:
29       - "2222:2222"
30       - "2223:2223"
31       - "2224:2224"
32     container_name: dmaap_simulator
33
34   aai:
35     build:
36       context: simulator
37       dockerfile: AAI_simulator
38     ports:
39       - "3333:3333"
40       - "3334:3334"
41       - "3335:3335"
42     container_name: aai_simulator
43
44   consul:
45     image: consul:1.0.6
46     ports:
47       - "8500:8500"
48     command: ["agent", "-bootstrap", "-client=0.0.0.0", "-server", "-ui", "-config-dir=/consul/consul.d"]
49     volumes:
50       - ./consul.d/:/consul/consul.d
51     container_name: consul
52
53   consul-cfg:
54     image: consul:1.0.6
55     restart: on-failure
56     command: ["kv", "put", "-http-addr=http://consul:8500", "dcae-prh", "@/prh_configs/prh-config.json"]
57     container_name: consul-cfg
58     volumes:
59       - ./prh_configs/:/prh_configs:Z
60     depends_on:
61       - consul
62
63   consul-cfg-dcae-ves-collector:
64     image: consul:1.0.6
65     restart: on-failure
66     command: ["kv", "put", "-http-addr=http://consul:8500", "dcae-ves-collector", "@/prh_configs/dcae-ves-collector-config.json"]
67     container_name: consul-cfg-dcae-ves-collector
68     volumes:
69       - ./prh_configs/:/prh_configs:Z
70     depends_on:
71       - consul
72
73   cbs:
74     image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.configbinding.app-app:2.2.4
75     ports:
76       - "10000:10000"
77     environment:
78       - CONSUL_HOST
79     depends_on:
80       - consul-cfg
81     healthcheck:
82       test: ["CMD", "curl", "-f", "http://localhost:10000/service_component_all/dcae-prh"]
83       interval: 3s
84       timeout: 2s
85       retries: 20
86     container_name: cbs