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-4.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-4.yaml')
-rw-r--r-- | heat/docker-compose-4.yaml | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/heat/docker-compose-4.yaml b/heat/docker-compose-4.yaml index c8c36ca..00fac94 100644 --- a/heat/docker-compose-4.yaml +++ b/heat/docker-compose-4.yaml @@ -2,8 +2,9 @@ version: '2.1' services: heartbeat: image: "{{ nexus_docker_repo}}/onap/org.onap.dcaegen2.platform.heartbeat:{{ dcae_docker_heartbeat }}" - container_name: static-dcaegen2-services-heartbeat - hostname: static-dcaegen2-services-heartbeat + container_name: "static-dcaegen2-services-heartbeat" + restart: "always" + hostname: "static-dcaegen2-services-heartbeat" environment: - "DMAAPHOST={{ mr_ip_addr }}" - "CONSUL_HOST=consul" @@ -22,8 +23,9 @@ services: prh: image: "{{ nexus_docker_repo}}/onap/org.onap.dcaegen2.services.prh.prh-app-server:{{ dcae_docker_prh }}" - container_name: prh - hostname: prh + container_name: "static-dcaegen2-services-prh" + restart: "always" + hostname: "static-dcaegen2-services-prh" environment: - "DMAAPHOST={{ mr_ip_addr }}" - "CONSUL_HOST=consul" @@ -42,8 +44,9 @@ services: snmptrap: image: "{{ nexus_docker_repo}}/onap/org.onap.dcaegen2.collectors.snmptrap:{{ dcae_docker_snmptrap }}" - container_name: static-dcaegen2-collectors-snmptrap - hostname: static-dcaegen2-collectors-snmptrap + container_name: "static-dcaegen2-collectors-snmptrap" + restart: "always" + hostname: "static-dcaegen2-collectors-snmptrap" environment: - "DMAAPHOST={{ mr_ip_addr }}" - "CONSUL_HOST=consul" @@ -51,8 +54,9 @@ services: - "CONFIG_BINDING_SERVICE=config_binding_service" - "SERVICE_NAME=static-dcaegen2-collectors-snmptrap" - "HOSTNAME=static-dcaegen2-collectors-snmptrap" + - "HOSTALIASES=/etc/host.aliases" ports: - - "162:162/udp" + - "162:6162/udp" labels: - "SERVICE_NAME=static-dcaegen2-collectors-snmptrap" - "SERVICE_CHECK_DOCKER_SCRIPT=/opt/app/snmptrap/bin/healthcheck.sh" |