blob: 00a2af1d1442992811e2bea74008c48ea76467a4 [file] [log] [blame]
grabinsk98daff82019-05-08 13:07:45 +02001version: "2.2"
Gary Wu9abb61c2018-09-27 10:38:50 -07002services:
3 prh:
4 image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.prh.prh-app-server:latest
Gary Wu9abb61c2018-09-27 10:38:50 -07005 ports:
6 - "8100:8100"
7 - "8433:8433"
Piotr Bocheńskibeebb962019-01-25 15:38:39 +01008 volumes:
9 - ./simulator/certs:/tmp/certs
Piotr Bocheński2378ea12019-03-12 16:49:08 +010010 environment:
grabinskec1d73a2019-06-17 11:02:01 +020011 - HOSTNAME=dcae-prh
12 - CONSUL_HOST # not in use, but still required by SDK - should be removed later on
Piotr Bocheński2378ea12019-03-12 16:49:08 +010013 - CONFIG_BINDING_SERVICE
grabinskec1d73a2019-06-17 11:02:01 +020014 - CONFIG_BINDING_SERVICE_SERVICE_PORT
grabinsk0fc9eab2019-05-23 13:34:38 +020015 container_name: prh
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010016 depends_on:
grabinsk98daff82019-05-08 13:07:45 +020017 cbs:
18 condition: service_healthy
19 dmaap-mr:
20 condition: service_started
21 aai:
22 condition: service_started
pkaras55d36862018-10-17 15:08:34 +020023
Marcin Migdal4882c742019-04-09 10:49:37 +020024 dmaap-mr:
Gary Wu9abb61c2018-09-27 10:38:50 -070025 build:
26 context: simulator
27 dockerfile: DMaaP_simulator
28 ports:
29 - "2222:2222"
pkarasc7abba82018-10-22 12:22:35 +020030 - "2223:2223"
31 - "2224:2224"
Gary Wu9abb61c2018-09-27 10:38:50 -070032 container_name: dmaap_simulator
33
34 aai:
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010035 build:
36 context: simulator
37 dockerfile: AAI_simulator
38 ports:
Gary Wu9abb61c2018-09-27 10:38:50 -070039 - "3333:3333"
pkaras55d36862018-10-17 15:08:34 +020040 - "3334:3334"
41 - "3335:3335"
Piotr Bocheńskibeebb962019-01-25 15:38:39 +010042 container_name: aai_simulator
Piotr Bocheński2378ea12019-03-12 16:49:08 +010043
44 consul:
Piotr Bocheński8ee0ef72019-03-13 12:13:05 +010045 image: consul:1.0.6
Piotr Bocheński2378ea12019-03-12 16:49:08 +010046 ports:
47 - "8500:8500"
Marcin Migdal0a5e1152019-04-10 16:13:08 +020048 command: ["agent", "-bootstrap", "-client=0.0.0.0", "-server", "-ui", "-config-dir=/consul/consul.d"]
Piotr Bocheński2378ea12019-03-12 16:49:08 +010049 volumes:
50 - ./consul.d/:/consul/consul.d
Marcin Migdal26125b12019-04-11 16:17:18 +020051 container_name: consul
Piotr Bocheński2378ea12019-03-12 16:49:08 +010052
53 consul-cfg:
Piotr Bocheński8ee0ef72019-03-13 12:13:05 +010054 image: consul:1.0.6
Piotr Bocheński2378ea12019-03-12 16:49:08 +010055 restart: on-failure
grabinskd28f36b2019-06-26 14:19:04 +020056 command: ["kv", "put", "-http-addr=http://consul:8500", "dcae-prh", "@/prh_configs/prh-config.json"]
Marcin Migdal26125b12019-04-11 16:17:18 +020057 container_name: consul-cfg
grabinskd28f36b2019-06-26 14:19:04 +020058 volumes:
59 - ./prh_configs/:/prh_configs:Z
Piotr Bocheński2378ea12019-03-12 16:49:08 +010060 depends_on:
61 - consul
62
Marcin Migdal9717aba2019-05-08 14:52:49 +020063 consul-cfg-dcae-ves-collector:
64 image: consul:1.0.6
65 restart: on-failure
grabinskd28f36b2019-06-26 14:19:04 +020066 command: ["kv", "put", "-http-addr=http://consul:8500", "dcae-ves-collector", "@/prh_configs/dcae-ves-collector-config.json"]
Marcin Migdal9717aba2019-05-08 14:52:49 +020067 container_name: consul-cfg-dcae-ves-collector
grabinskd28f36b2019-06-26 14:19:04 +020068 volumes:
69 - ./prh_configs/:/prh_configs:Z
Marcin Migdal9717aba2019-05-08 14:52:49 +020070 depends_on:
71 - consul
72
Piotr Bocheński2378ea12019-03-12 16:49:08 +010073 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
grabinsk98daff82019-05-08 13:07:45 +020081 healthcheck:
82 test: ["CMD", "curl", "-f", "http://localhost:10000/service_component_all/dcae-prh"]
83 interval: 3s
84 timeout: 2s
85 retries: 20
Marcin Migdalfba99a52019-04-15 14:36:45 +020086 container_name: cbs