grabinsk | 98daff8 | 2019-05-08 13:07:45 +0200 | [diff] [blame] | 1 | version: "2.2" |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 2 | services: |
| 3 | prh: |
| 4 | image: nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.prh.prh-app-server:latest |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 5 | ports: |
| 6 | - "8100:8100" |
| 7 | - "8433:8433" |
Piotr Bocheński | beebb96 | 2019-01-25 15:38:39 +0100 | [diff] [blame] | 8 | volumes: |
| 9 | - ./simulator/certs:/tmp/certs |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 10 | environment: |
grabinsk | ec1d73a | 2019-06-17 11:02:01 +0200 | [diff] [blame] | 11 | - HOSTNAME=dcae-prh |
| 12 | - CONSUL_HOST # not in use, but still required by SDK - should be removed later on |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 13 | - CONFIG_BINDING_SERVICE |
grabinsk | ec1d73a | 2019-06-17 11:02:01 +0200 | [diff] [blame] | 14 | - CONFIG_BINDING_SERVICE_SERVICE_PORT |
grabinsk | 0fc9eab | 2019-05-23 13:34:38 +0200 | [diff] [blame] | 15 | container_name: prh |
Piotr Bocheński | beebb96 | 2019-01-25 15:38:39 +0100 | [diff] [blame] | 16 | depends_on: |
grabinsk | 98daff8 | 2019-05-08 13:07:45 +0200 | [diff] [blame] | 17 | cbs: |
| 18 | condition: service_healthy |
| 19 | dmaap-mr: |
| 20 | condition: service_started |
| 21 | aai: |
| 22 | condition: service_started |
pkaras | 55d3686 | 2018-10-17 15:08:34 +0200 | [diff] [blame] | 23 | |
Marcin Migdal | 4882c74 | 2019-04-09 10:49:37 +0200 | [diff] [blame] | 24 | dmaap-mr: |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 25 | build: |
| 26 | context: simulator |
| 27 | dockerfile: DMaaP_simulator |
| 28 | ports: |
| 29 | - "2222:2222" |
pkaras | c7abba8 | 2018-10-22 12:22:35 +0200 | [diff] [blame] | 30 | - "2223:2223" |
| 31 | - "2224:2224" |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 32 | container_name: dmaap_simulator |
| 33 | |
| 34 | aai: |
Piotr Bocheński | beebb96 | 2019-01-25 15:38:39 +0100 | [diff] [blame] | 35 | build: |
| 36 | context: simulator |
| 37 | dockerfile: AAI_simulator |
| 38 | ports: |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 39 | - "3333:3333" |
pkaras | 55d3686 | 2018-10-17 15:08:34 +0200 | [diff] [blame] | 40 | - "3334:3334" |
| 41 | - "3335:3335" |
Piotr Bocheński | beebb96 | 2019-01-25 15:38:39 +0100 | [diff] [blame] | 42 | container_name: aai_simulator |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 43 | |
| 44 | consul: |
Piotr Bocheński | 8ee0ef7 | 2019-03-13 12:13:05 +0100 | [diff] [blame] | 45 | image: consul:1.0.6 |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 46 | ports: |
| 47 | - "8500:8500" |
Marcin Migdal | 0a5e115 | 2019-04-10 16:13:08 +0200 | [diff] [blame] | 48 | command: ["agent", "-bootstrap", "-client=0.0.0.0", "-server", "-ui", "-config-dir=/consul/consul.d"] |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 49 | volumes: |
| 50 | - ./consul.d/:/consul/consul.d |
Marcin Migdal | 26125b1 | 2019-04-11 16:17:18 +0200 | [diff] [blame] | 51 | container_name: consul |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 52 | |
| 53 | consul-cfg: |
Piotr Bocheński | 8ee0ef7 | 2019-03-13 12:13:05 +0100 | [diff] [blame] | 54 | image: consul:1.0.6 |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 55 | restart: on-failure |
grabinsk | d28f36b | 2019-06-26 14:19:04 +0200 | [diff] [blame] | 56 | command: ["kv", "put", "-http-addr=http://consul:8500", "dcae-prh", "@/prh_configs/prh-config.json"] |
Marcin Migdal | 26125b1 | 2019-04-11 16:17:18 +0200 | [diff] [blame] | 57 | container_name: consul-cfg |
grabinsk | d28f36b | 2019-06-26 14:19:04 +0200 | [diff] [blame] | 58 | volumes: |
| 59 | - ./prh_configs/:/prh_configs:Z |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 60 | depends_on: |
| 61 | - consul |
| 62 | |
Marcin Migdal | 9717aba | 2019-05-08 14:52:49 +0200 | [diff] [blame] | 63 | consul-cfg-dcae-ves-collector: |
| 64 | image: consul:1.0.6 |
| 65 | restart: on-failure |
grabinsk | d28f36b | 2019-06-26 14:19:04 +0200 | [diff] [blame] | 66 | command: ["kv", "put", "-http-addr=http://consul:8500", "dcae-ves-collector", "@/prh_configs/dcae-ves-collector-config.json"] |
Marcin Migdal | 9717aba | 2019-05-08 14:52:49 +0200 | [diff] [blame] | 67 | container_name: consul-cfg-dcae-ves-collector |
grabinsk | d28f36b | 2019-06-26 14:19:04 +0200 | [diff] [blame] | 68 | volumes: |
| 69 | - ./prh_configs/:/prh_configs:Z |
Marcin Migdal | 9717aba | 2019-05-08 14:52:49 +0200 | [diff] [blame] | 70 | depends_on: |
| 71 | - consul |
| 72 | |
Piotr Bocheński | 2378ea1 | 2019-03-12 16:49:08 +0100 | [diff] [blame] | 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 |
grabinsk | 98daff8 | 2019-05-08 13:07:45 +0200 | [diff] [blame] | 81 | healthcheck: |
| 82 | test: ["CMD", "curl", "-f", "http://localhost:10000/service_component_all/dcae-prh"] |
| 83 | interval: 3s |
| 84 | timeout: 2s |
| 85 | retries: 20 |
Marcin Migdal | fba99a5 | 2019-04-15 14:36:45 +0200 | [diff] [blame] | 86 | container_name: cbs |