# Creates the following container setup:
# collectd -> Kafka -> kafka-influxdb -> InfluxDB
zookeeper:
  image: wurstmeister/zookeeper
  ports:
    - "2181"
kafka:
  image: wurstmeister/kafka
  ports:
    - "9092"
  links:
    - zookeeper:zk
  environment:
    KAFKA_ADVERTISED_HOST_NAME: 192.168.99.100
    KAFKA_CREATE_TOPICS: "metrics:1:1"
  volumes:
    - /var/run/docker.sock:/var/run/docker.sock
influxdb:
  image: tutum/influxdb:0.9
  environment:
    PRE_CREATE_DB: "metrics"
  volumes:
    - contrib/influxdb/config.toml:/config/config.toml
  ports:
   - "2003:2003"
   - "8083:8083"
   - "8086:8086"
collectd:
  image: mre0/collectd
  volumes:
    - contrib/collectd/collectd.conf:/etc/collectd.conf
  links:
    - kafka
kafkainfluxdb:
  build: .
  entrypoint: /bin/bash
  stdin_open: true
  tty: true
  volumes:
    - .:/code
  links:
    - kafka
    - influxdb

# Creates the following container setup:
# collectd -> Kafka -> kafka-influxdb -> InfluxDB
zookeeper:
  image: wurstmeister/zookeeper
  ports:
    - "2181"
kafka:
  image: wurstmeister/kafka
  ports:
    - "9092"
  links:
    - zookeeper:zk
  volumes:
    - /var/run/docker.sock:/var/run/docker.sock
  environment:
    KAFKA_ADVERTISED_HOST_NAME: 192.168.99.100
    KAFKA_CREATE_TOPICS: "metrics:1:1,benchmark:1:1,my_topic:1:1"
influxdb:
  image: tutum/influxdb:0.9
  environment:
    PRE_CREATE_DB: "metrics"
  volumes:
    - contrib/influxdb/config.toml:/config/config.toml
  ports:
   - "2003:2003"
   - "8083:8083"
   - "8086:8086"
collectd:
  image: mre0/collectd
  volumes:
    - contrib/collectd/collectd.conf:/etc/collectd.conf
  links:
    - kafka
kafkainfluxdb:
  build: .
  entrypoint: /bin/bash
  stdin_open: true
  tty: true
  volumes:
    - .:/code
  links:
    - kafka
    - influxdb

Create all default topics on kafka startup
Create all default topics on kafka startup
