aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dcaegen2/prh-testcases/resources/docker-compose.yml
blob: 00a2af1d1442992811e2bea74008c48ea76467a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: "2.2"
services:
  prh:
    image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.prh.prh-app-server:latest
    ports:
      - "8100:8100"
      - "8433:8433"
    volumes:
      - ./simulator/certs:/tmp/certs
    environment:
      - HOSTNAME=dcae-prh
      - CONSUL_HOST                # not in use, but still required by SDK - should be removed later on
      - CONFIG_BINDING_SERVICE
      - CONFIG_BINDING_SERVICE_SERVICE_PORT
    container_name: prh
    depends_on:
      cbs:
        condition: service_healthy
      dmaap-mr:
        condition: service_started
      aai:
        condition: service_started

  dmaap-mr:
    build:
      context: simulator
      dockerfile: DMaaP_simulator
    ports:
      - "2222:2222"
      - "2223:2223"
      - "2224:2224"
    container_name: dmaap_simulator

  aai:
    build:
      context: simulator
      dockerfile: AAI_simulator
    ports:
      - "3333:3333"
      - "3334:3334"
      - "3335:3335"
    container_name: aai_simulator

  consul:
    image: consul:1.0.6
    ports:
      - "8500:8500"
    command: ["agent", "-bootstrap", "-client=0.0.0.0", "-server", "-ui", "-config-dir=/consul/consul.d"]
    volumes:
      - ./consul.d/:/consul/consul.d
    container_name: consul

  consul-cfg:
    image: consul:1.0.6
    restart: on-failure
    command: ["kv", "put", "-http-addr=http://consul:8500", "dcae-prh", "@/prh_configs/prh-config.json"]
    container_name: consul-cfg
    volumes:
      - ./prh_configs/:/prh_configs:Z
    depends_on:
      - consul

  consul-cfg-dcae-ves-collector:
    image: consul:1.0.6
    restart: on-failure
    command: ["kv", "put", "-http-addr=http://consul:8500", "dcae-ves-collector", "@/prh_configs/dcae-ves-collector-config.json"]
    container_name: consul-cfg-dcae-ves-collector
    volumes:
      - ./prh_configs/:/prh_configs:Z
    depends_on:
      - consul

  cbs:
    image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.configbinding.app-app:2.2.4
    ports:
      - "10000:10000"
    environment:
      - CONSUL_HOST
    depends_on:
      - consul-cfg
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:10000/service_component_all/dcae-prh"]
      interval: 3s
      timeout: 2s
      retries: 20
    container_name: cbs