From 13ac03ee4e35d783bdd1e52c1de7f59dfb31759e Mon Sep 17 00:00:00 2001 From: robert Date: Thu, 3 Aug 2017 07:49:12 +0200 Subject: [PATCH] added docker-compose and explanation regarding its usage to the docs --- cmd/jaeger-stack/docker-compose.yml | 73 +++++++++++++++++++++++++++++ docs/deployment.md | 2 + 2 files changed, 75 insertions(+) create mode 100644 cmd/jaeger-stack/docker-compose.yml diff --git a/cmd/jaeger-stack/docker-compose.yml b/cmd/jaeger-stack/docker-compose.yml new file mode 100644 index 00000000000..92843b96842 --- /dev/null +++ b/cmd/jaeger-stack/docker-compose.yml @@ -0,0 +1,73 @@ +version: '2' +services: + cassandra: + image: cassandra:3.11 + networks: + - jaeger + ports: + - "7000:7000" + - "7001:7001" + - "7199:7199" + - "9042:9042" + - "9160:9160" + restart: unless-stopped + volumes: + - cassandra-data:/var/lib/cassandra + - cassandra-logs:/var/log/cassandra + logging: + options: + max-size: 5m + environment: + MAX_HEAP_SIZE: 512M + HEAP_NEWSIZE: 100M + CASSANDRA_CLUSTER_NAME: "jaeger" + CASSANDRA_DC: "dc1" + CASSANDRA_RACK: "rack1" + CASSANDRA_ENDPOINT_SNITCH: "GossipingPropertyFileSnitch" + CASSANDRA_START_RPC: "true" + cassandra-scheme: + image: jaegertracing/jaeger-cassandra-schema:0.5 + networks: + - jaeger + depends_on: + - cassandra + jaeger-collector: + image: jaegertracing/jaeger-collector:0.5 + networks: + - jaeger + ports: + - "14267:14267" + - "14268:14268" + depends_on: + - cassandra-scheme + restart: unless-stopped + command: /go/bin/collector-linux -cassandra.servers=cassandra -cassandra.keyspace=jaeger_v1_dc1 -cassandra.connections-per-host 2 + jaeger-agent: + image: jaegertracing/jaeger-agent:0.5 + networks: + - jaeger + ports: + - "5775:5775/udp" + - "5778:5778" + - "6831:6831/udp" + - "6832:6832/udp" + depends_on: + - cassandra-scheme + restart: unless-stopped + command: /go/bin/agent-linux -collector.host-port=jaeger-collector:14267 + jaeger-query: + image: jaegertracing/jaeger-query:0.5 + networks: + - jaeger + ports: + - "16686:16686" + depends_on: + - cassandra-scheme + restart: unless-stopped + command: /go/bin/query-linux -cassandra.servers=cassandra -cassandra.keyspace=jaeger_v1_dc1 --query.static-files=/go/jaeger-ui/ +networks: + jaeger: #defaultnetwork +volumes: + cassandra-data: {} + cassandra-logs: {} + \ No newline at end of file diff --git a/docs/deployment.md b/docs/deployment.md index c76dde5a8e5..bce681ab09d 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -13,6 +13,8 @@ There are orchestration templates for running Jaeger with: * Kubernetes: [github.com/jaegertracing/jaeger-kubernetes](https://github.com/jaegertracing/jaeger-kubernetes), * OpenShift: [github.com/jaegertracing/jaeger-openshift](https://github.com/jaegertracing/jaeger-openshift). +As well as a [docker-compose.yml](./../cmd/jaeger-stack) for your convenience to start up the whole stack including the query interface, a Cassandra database, an agent and the collector on one machine. The compose-file will kick start the database (Cassandra) and a container that establishes the database-structure as soon as Cassandra is available. After Cassandras successful configuration, the collector and the query interface will become stable as well (while the schema setup is in progress you may see the collector and the query restart until eventually all their needs are satisfied). + ## Agent Jaeger client libraries expect **jaeger-agent** process to run locally on each host.