Created
August 4, 2015 22:39
-
-
Save itaymendel/0d04ec9a7d944c3c81f1 to your computer and use it in GitHub Desktop.
statsd-grphite-grafana on vagrant using docker-compose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://gist.github.com/chamerling/21e8ff5d7a0dd47ac10c | |
app: | |
build: . | |
links: | |
- statsd:statsd | |
ports: | |
- "3000:3000" | |
statsd: | |
image: hopsoft/graphite-statsd | |
ports: | |
- "3002:80" | |
- "2003:2003" | |
- "8125:8125/udp" | |
grafana: | |
image: grafana/grafana | |
ports: | |
- "3001:3000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
unless Vagrant.has_plugin?("vagrant-docker-compose") | |
raise 'please run: vagrant plugin install vagrant-docker-compose' | |
end | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box" | |
config.vm.provision :docker | |
config.vm.provision :docker_compose, yml: "/vagrant/docker-compose.yml", run: "always" | |
config.vm.network "private_network", ip: "192.168.50.4" | |
config.vm.network :forwarded_port, guest: 80, host: 3002 | |
config.vm.network :forwarded_port, guest: 2003, host: 3001 | |
config.vm.network :forwarded_port, guest: 8125, host: 8125, protocol: :udp | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment