diff options
author | Lusheng Ji <lji@research.att.com> | 2018-05-08 09:38:02 -0400 |
---|---|---|
committer | Lusheng Ji <lji@research.att.com> | 2018-05-08 18:45:27 +0000 |
commit | cb9d614fdc78480584466b8e84f3535d946424a0 (patch) | |
tree | 9c8f4efa4f9c459a25edc6c0bab8a94c914026b0 /heat/docker-compose-2.yaml | |
parent | dda9b82dff27429d9710db5069686553e367728b (diff) |
Set containers restart policy
1. set container restart policy
2. modify naming for some containers for consistency
Issue-ID: DCAEGEN2-494
Change-Id: I49dc93e3e18d8b30f06bb913a7d52493e26f9e61
Signed-off-by: Lusheng Ji <lji@research.att.com>
Diffstat (limited to 'heat/docker-compose-2.yaml')
-rw-r--r-- | heat/docker-compose-2.yaml | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/heat/docker-compose-2.yaml b/heat/docker-compose-2.yaml index 4fd9d5a..2d53b85 100644 --- a/heat/docker-compose-2.yaml +++ b/heat/docker-compose-2.yaml @@ -4,6 +4,7 @@ services: mvp-dcaegen2-collectors-ves: image: "{{ nexus_docker_repo}}/onap/org.onap.dcaegen2.collectors.ves.vescollector:{{ dcae_docker_ves }}" container_name: "mvp-dcaegen2-collectors-ves" + restart: "always" hostname: "mvp-dcaegen2-collectors-ves" environment: - "DMAAPHOST={{ mr_ip_addr }}" @@ -24,6 +25,7 @@ services: mvp-dcaegen2-analytics-tca: image: "{{ nexus_docker_repo}}/onap/org.onap.dcaegen2.deployments.tca-cdap-container:{{ dcae_docker_tca }}" container_name: "mvp-dcaegen2-analytics-tca" + restart: "always" hostname: "mvp-dcaegen2-analytics-tca" environment: - "DMAAPHOST={{ mr_ip_addr }}" @@ -50,10 +52,11 @@ services: - "SERVICE_11011_CHECK_INTERVAL=15s" - "SERVICE_11011_CHECK_INITIAL_STATUS=passing" - mvp-dcae-analytics-holmes-engine-management: + mvp-dcaegen2-analytics-holmes-engine-management: image: "{{ nexus_docker_repo}}/onap/holmes/engine-management:{{ holmes_docker_em }}" - container_name: "mvp-dcae-analytics-holmes-engine-management" - hostname: "mvp-dcae-analytics-holmes-engine-management" + container_name: "mvp-dcaegen2-analytics-holmes-engine-management" + restart: "always" + hostname: "mvp-dcaegen2-analytics-holmes-engine-management" environment: - "URL_JDBC=pgHolmes:5432" - "JDBC_USERNAME=holmes" @@ -62,16 +65,17 @@ services: - "CONSUL_HOST=consul" - "CONSUL_PORT=8500" - "CONFIG_BINDING_SERVICE=config_binding_service" - - "HOSTNAME=mvp-dcae-analytics-holmes-engine-management" + - "HOSTNAME=mvp-dcaegen2-analytics-holmes-engine-management" ports: - "9102:9102" labels: - "SERVICE_9102_IGNORE=true" - mvp-dcae-analytics-holmes-rule-management: + mvp-dcaegen2-analytics-holmes-rule-management: image: "{{ nexus_docker_repo}}/onap/holmes/rule-management:{{ holmes_docker_rm }}" - container_name: "mvp-dcae-analytics-holmes-rule-management" - hostname: "mvp-dcae-analytics-holmes-rule-management" + container_name: "mvp-dcaegen2-analytics-holmes-rule-management" + restart: "always" + hostname: "mvp-dcaegen2-analytics-holmes-rule-management" environment: - "URL_JDBC=pgHolmes:5432" - "JDBC_USERNAME=holmes" @@ -80,7 +84,7 @@ services: - "CONSUL_HOST=consul" - "CONSUL_PORT=8500" - "CONFIG_BINDING_SERVICE=config_binding_service" - - "HOSTNAME=mvp-dcae-analytics-holmes-rule-management" + - "HOSTNAME=mvp-dcaegen2-analytics-holmes-rule-management" ports: - "9101:9101" labels: |