diff --git a/docker-compose-zipkin.yml b/docker-compose-zipkin.yml
new file mode 100644
index 0000000..5dea7d9
--- /dev/null
+++ b/docker-compose-zipkin.yml
@@ -0,0 +1,51 @@
+version: '2'
+
+services:
+ orders:
+ image: weaveworksdemos/orders
+ hostname: orders
+ restart: always
+ cap_drop:
+ - all
+ cap_add:
+ - NET_BIND_SERVICE
+ read_only: true
+ tmpfs:
+ - /tmp:rw,noexec,nosuid
+ environment:
+ - reschedule=on-node-failure
+ - ZIPKIN=zipkin
+ ports:
+ - "8082:80"
+ orders-db:
+ image: mongo
+ hostname: orders-db
+ restart: always
+ cap_drop:
+ - all
+ cap_add:
+ - CHOWN
+ - SETGID
+ - SETUID
+ read_only: true
+ tmpfs:
+ - /tmp:rw,noexec,nosuid
+ environment:
+ - reschedule=on-node-failure
+ zipkin:
+ image: openzipkin/zipkin
+ hostname: zipkin
+ restart: always
+ cap_drop:
+ - all
+ cap_add:
+ - CHOWN
+ - SETGID
+ - SETUID
+ read_only: true
+ tmpfs:
+ - /tmp:rw,noexec,nosuid
+ environment:
+ - reschedule=on-node-failure
+ ports:
+ - "9411:9411"
diff --git a/pom.xml b/pom.xml
index 63dab62..7948a76 100644
--- a/pom.xml
+++ b/pom.xml
@@ -35,6 +35,11 @@
org.springframework.boot
spring-boot-starter-actuator
+
+ org.springframework.cloud
+ spring-cloud-starter-zipkin
+ 1.1.0.RELEASE
+
io.prometheus
simpleclient
@@ -66,6 +71,8 @@
0.8.4
test
+
+
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index 2dea02e..ccb69d4 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -1,3 +1,6 @@
server.port=${port:8082}
spring.data.mongodb.uri=mongodb://${db:orders-db}:27017/data
endpoints.health.enabled=false
+spring.zipkin.baseUrl=http://${zipkin:zipkin}:9411/
+spring.sleuth.sampler.percentage=1.0
+spring.application.name=orders