github.com/muhammadn/cortex@v1.9.1-0.20220510110439-46bb7000d03d/development/tsdb-blocks-storage-s3-single-binary/docker-compose.yml (about) 1 version: '3.4' 2 services: 3 4 consul: 5 image: consul 6 command: [ "agent", "-dev" ,"-client=0.0.0.0", "-log-level=info" ] 7 ports: 8 - 8500:8500 9 10 minio: 11 image: minio/minio 12 command: [ "server", "/data" ] 13 environment: 14 - MINIO_ACCESS_KEY=cortex 15 - MINIO_SECRET_KEY=supersecret 16 ports: 17 - 9000:9000 18 volumes: 19 - .data-minio:/data:delegated 20 21 prometheus: 22 image: prom/prometheus:v2.16.0 23 command: ["--config.file=/etc/prometheus/prometheus.yaml"] 24 volumes: 25 - ./config:/etc/prometheus 26 ports: 27 - 9090:9090 28 29 # Scrape the metrics also with the Grafana agent (useful to test metadata ingestion 30 # until metadata remote write is not supported by Prometheus). 31 grafana-agent: 32 image: grafana/agent:v0.2.0 33 command: ["-config.file=/etc/agent-config/grafana-agent.yaml", "-prometheus.wal-directory=/tmp"] 34 volumes: 35 - ./config:/etc/agent-config 36 ports: 37 - 9091:9091 38 39 jaeger: 40 image: jaegertracing/all-in-one 41 ports: 42 - 16686:16686 43 - "14268" 44 45 cortex-1: 46 build: 47 context: . 48 dockerfile: dev.dockerfile 49 image: cortex 50 command: ["sh", "-c", "sleep 3 && exec ./cortex -config.file=./config/cortex.yaml -target=all -server.http-listen-port=8001 -server.grpc-listen-port=9001"] 51 depends_on: 52 - consul 53 - minio 54 environment: 55 - JAEGER_AGENT_HOST=jaeger 56 - JAEGER_AGENT_PORT=6831 57 - JAEGER_TAGS=app=cortex-1 58 - JAEGER_SAMPLER_TYPE=const 59 - JAEGER_SAMPLER_PARAM=1 60 ports: 61 - 8001:8001 62 volumes: 63 - ./config:/cortex/config 64 - .data-cortex-1:/data:delegated 65 66 cortex-2: 67 build: 68 context: . 69 dockerfile: dev.dockerfile 70 image: cortex 71 command: ["sh", "-c", "sleep 3 && exec ./cortex -config.file=./config/cortex.yaml -target=all -server.http-listen-port=8002 -server.grpc-listen-port=9002"] 72 depends_on: 73 - consul 74 - minio 75 environment: 76 - JAEGER_AGENT_HOST=jaeger 77 - JAEGER_AGENT_PORT=6831 78 - JAEGER_TAGS=app=cortex-2 79 - JAEGER_SAMPLER_TYPE=const 80 - JAEGER_SAMPLER_PARAM=1 81 ports: 82 - 8002:8002 83 volumes: 84 - ./config:/cortex/config 85 - .data-cortex-2:/data:delegated