Start DB and Redis before other bootstrap containers

Change-Id: Ie1eb69431bccc1874d01d44e95284771ee4208a5
diff --git a/roles/cord-profile/templates/xos-bootstrap-docker-compose.yaml.j2 b/roles/cord-profile/templates/xos-bootstrap-docker-compose.yaml.j2
index ed24bd5..06c20d2 100644
--- a/roles/cord-profile/templates/xos-bootstrap-docker-compose.yaml.j2
+++ b/roles/cord-profile/templates/xos-bootstrap-docker-compose.yaml.j2
@@ -67,6 +67,11 @@
       options:
         max-size: "1000k"
         max-file: "5"
+    depends_on:
+      - xos_db
+{% if use_redis %}
+      - xos_redis
+{% endif %}
 
   xos_synchronizer_onboarding:
     image: {{ deploy_docker_registry }}xosproject/xos:{{ deploy_docker_tag }}
@@ -95,3 +100,5 @@
       options:
         max-size: "1000k"
         max-file: "5"
+    depends_on:
+      - xos_db