Skip to content
Snippets Groups Projects
Commit a5785ab9 authored by Jason Smith's avatar Jason Smith Committed by GitHub
Browse files

Merge pull request #18 from microservices-demo/enhancement/opentracing

Enhancement/opentracing
parents a51f183c 3e36f3b9
No related branches found
Tags 0.4.7
No related merge requests found
version: '2'
services:
carts:
image: weaveworksdemos/carts
hostname: carts
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:
- "8081:80"
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"
...@@ -35,6 +35,11 @@ ...@@ -35,6 +35,11 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId> <artifactId>spring-boot-starter-actuator</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zipkin</artifactId>
<version>1.1.0.RELEASE</version>
</dependency>
<dependency> <dependency>
<groupId>io.prometheus</groupId> <groupId>io.prometheus</groupId>
<artifactId>simpleclient</artifactId> <artifactId>simpleclient</artifactId>
......
server.port=${port:8081} server.port=${port:8081}
spring.data.mongodb.uri=mongodb://${db:cart-db}:27017/data spring.data.mongodb.uri=mongodb://${db:cart-db}:27017/data
endpoints.health.enabled=false endpoints.health.enabled=false
spring.zipkin.baseUrl=http://${zipkin:zipkin}:9411/
spring.sleuth.sampler.percentage=1.0
spring.application.name=carts
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment