[CORD-2889]
Change to using premade `postgres` container

Change-Id: Ifdba25f5999bd82dd031ad77f224df9ec6d779a6
diff --git a/roles/cord-profile/templates/docker-compose.yml.j2 b/roles/cord-profile/templates/docker-compose.yml.j2
index afd7608..a3f817b 100644
--- a/roles/cord-profile/templates/docker-compose.yml.j2
+++ b/roles/cord-profile/templates/docker-compose.yml.j2
@@ -1,4 +1,4 @@
-
+---
 {#
 Copyright 2017-present Open Networking Foundation
 
@@ -15,7 +15,6 @@
 limitations under the License.
 #}
 
-
 version: '2'
 
 # XOS docker compose
@@ -37,14 +36,18 @@
     networks:
 {% for network in xos_docker_networks %}
       - {{ network }}
-{% endfor %} 
+{% endfor %}
 {% endif %}
   xos_db:
-    image: {{ pull_docker_registry }}xosproject/xos-postgres:{{ pull_docker_tag }}
+    image: {{ pull_docker_registry }}postgres:{{ pull_docker_tag }}
     networks:
 {% for network in xos_docker_networks %}
       - {{ network }}
 {% endfor %}
+    environment:
+      - POSTGRES_DB={{ xos_db_name }}
+      - POSTGRES_USER={{ xos_db_username }}
+      - POSTGRES_PASSWORD={{ xos_db_password }}
     expose:
       - "5432"
     restart: unless-stopped