summaryrefslogtreecommitdiffstats
path: root/heat/docker-compose-1.yaml
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2018-05-08 09:38:02 -0400
committerLusheng Ji <lji@research.att.com>2018-05-08 18:45:27 +0000
commitcb9d614fdc78480584466b8e84f3535d946424a0 (patch)
tree9c8f4efa4f9c459a25edc6c0bab8a94c914026b0 /heat/docker-compose-1.yaml
parentdda9b82dff27429d9710db5069686553e367728b (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-1.yaml')
-rw-r--r--heat/docker-compose-1.yaml6
1 files changed, 5 insertions, 1 deletions
diff --git a/heat/docker-compose-1.yaml b/heat/docker-compose-1.yaml
index 82095ad..b8a04d1 100644
--- a/heat/docker-compose-1.yaml
+++ b/heat/docker-compose-1.yaml
@@ -3,6 +3,7 @@ services:
pgHolmes:
image: "postgres:9.5"
container_name: "pgHolmes"
+ restart: "always"
hostname: "phHolmes"
environment:
- "POSTGRES_USER=holmes"
@@ -18,6 +19,7 @@ services:
pgInventory:
image: "postgres:9.5"
container_name: "pgInventory"
+ restart: "always"
hostname: "pgInventory"
environment:
- "POSTGRES_USER=inventory"
@@ -32,8 +34,9 @@ services:
consul:
- image: consul:0.8.3
+ image: "consul:0.8.3"
container_name: "consul"
+ restart: "always"
hostname: "consul"
ports:
- "8500:8500"
@@ -50,6 +53,7 @@ services:
config-binding-service:
image: "{{ nexus_docker_repo}}/onap/org.onap.dcaegen2.platform.configbinding:{{ dcae_docker_cbs }}"
container_name: "config_binding_service"
+ restart: "always"
hostname: "config-binding-service"
environment:
- "CONSUL_HOST=consul"