[CORD-2380] Adding docker-compose.yml to exampleservice

Change-Id: I09c93613c503333ca573814f485a3a4df56c9e94
diff --git a/docker-compose.yml.j2 b/docker-compose.yml.j2
new file mode 100644
index 0000000..231da65
--- /dev/null
+++ b/docker-compose.yml.j2
@@ -0,0 +1,35 @@
+# NOTE: this template is used by the xos-services-up in platform-install
+
+version: '2'
+
+networks:
+  xos:
+    external: true
+
+services:
+  exampleservice-synchronizer:
+    image: {{ pull_docker_registry }}xosproject/{{ item.name }}-synchronizer:{{ pull_docker_tag }}
+    networks:
+{% for network in xos_docker_networks %}
+      - {{ network }}
+{% endfor %}
+    depends_on:
+      - registrator
+      - xos_redis
+    links:
+      - consul:consul
+      - xos_redis:redis
+    volumes:
+      - {{ head_cord_profile_dir }}/xos_config_synchronizer.yaml:/opt/xos/xos_config.yaml:ro
+      - {{ head_cord_profile_dir }}/node_key:/opt/cord_profile/node_key:ro
+      - {{ head_credentials_dir }}:/opt/xos/services/{{ item.name }}/credentials:ro
+      - {{ head_cord_profile_dir }}/im_cert_chain.pem:/usr/local/share/ca-certificates/local_certs.crt:ro
+      - {{ head_cord_profile_dir }}/key_import/{{ item.keypair }}:/opt/xos/services/{{ item.name }}/keys/{{ item.keypair }}:ro
+    logging:
+      driver: "json-file"
+      options:
+        max-size: "1000k"
+        max-file: "5"
+    environment:
+      SERVICE_NAME: "xos-{{ item.name }}-synchronizer"
+    restart: unless-stopped