commit | e6e915c346aef8c2143499ef91a1f54adf314733 | [log] [tgz] |
---|---|---|
author | Andy Bavier <andy@onlab.us> | Tue Mar 28 17:19:06 2017 -0400 |
committer | Andy Bavier <andy@onlab.us> | Tue Apr 18 10:23:32 2017 -0700 |
tree | f4fcd0e0298d42784428415698974b8ee05f21ae | |
parent | 5719654b77b45837f2ab04ade394153c24c46572 [diff] |
CORD-651 Restart policy for containers Change-Id: I13538741b2ac7a524c2e5de6449d9f30a4d60541
diff --git a/roles/onos-cord-install/files/onos-cord-docker-compose.yml b/roles/onos-cord-install/files/onos-cord-docker-compose.yml index 2e6bdf4..6a7a1d3 100644 --- a/roles/onos-cord-install/files/onos-cord-docker-compose.yml +++ b/roles/onos-cord-install/files/onos-cord-docker-compose.yml
@@ -15,3 +15,4 @@ - "9877:9876" volumes: - ./node_key:/root/node_key:ro + restart: unless-stopped
diff --git a/roles/onos-fabric-install/templates/docker-compose.yml.j2 b/roles/onos-fabric-install/templates/docker-compose.yml.j2 index b98230f..1d48ca8 100644 --- a/roles/onos-fabric-install/templates/docker-compose.yml.j2 +++ b/roles/onos-fabric-install/templates/docker-compose.yml.j2
@@ -11,4 +11,5 @@ - "8181:8181" # ONOS UI/API - "9876:9876" # ONOS Clustering - "2620:2620" # vRouter + restart: unless-stopped