Skip to content

Instantly share code, notes, and snippets.

@dudleycarr
Created September 30, 2015 16:22
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save dudleycarr/c752ed28e55aab550e45 to your computer and use it in GitHub Desktop.
Save dudleycarr/c752ed28e55aab550e45 to your computer and use it in GitHub Desktop.
Docker Compose for nsq, StatsD, Graphite, and Grafana
graphitestatsd:
image: hopsoft/graphite-statsd
expose:
- 80
- 8125/udp
ports:
- 8080:80
nsqlookupd:
image: nsqio/nsq:v0.3.5
command: /nsqlookupd
expose:
- 4160
- 4161
nsqadmin:
image: nsqio/nsq:v0.3.5
command: "sh -c '/nsqadmin \
--lookupd-http-address=nsqlookupd:4161 \
--graphite-url=http://graphitestatsd \
--proxy-graphite=true
'"
links:
- nsqlookupd
- nsqd
- graphitestatsd
expose:
- 4171
ports:
- 4171:4171
nsqd:
image: nsqio/nsq:v0.3.5
volumes:
- /data
command: "sh -c '/nsqd \
--data-path=/data \
--statsd-address=graphitestatsd:8125 \
--lookupd-tcp-address=nsqlookupd:4160 \
'"
links:
- nsqlookupd
- graphitestatsd
expose:
- 4150
- 4151
ports:
- 4150:4150
- 4151:4151
grafana:
image: grafana/grafana
ports:
- 3000:3000
links:
- graphitestatsd
@cyppan
Copy link

cyppan commented Oct 23, 2015

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment