blob: 00a2af1d1442992811e2bea74008c48ea76467a4 [file] [log] [blame]
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