-
- 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