Advertisement
Guest User

Untitled

a guest
Oct 19th, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.19 KB | None | 0 0
  1. version: '2'
  2. services:
  3.   db:
  4.     build:
  5.       context: .
  6.       dockerfile: Dockerfile.postgres
  7.     ports:
  8.      - "5432:5432"
  9.     environment:
  10.       POSTGRES_PASSWORD: "postgres"
  11.       POSTGRES_USER: "postgres"
  12.       PGDATA: "/var/lib/postgresql/data/pgdata"
  13.   zookeeper:
  14.    #image: mesoscloud/zookeeper:3.4.8-ubuntu-14.04
  15.     build:
  16.       context: .
  17.       dockerfile: Dockerfile.zookeeper
  18.     ports:
  19.       - "2181:2181"
  20.     environment:
  21.       MYID: "1"
  22.   kafka:
  23.     build:
  24.       context: .
  25.       dockerfile: Dockerfile.kafka
  26.     ports:
  27.      - "9092:9092"
  28.     environment:
  29.       KAFKA_ADVERTISED_HOST_NAME: kafka
  30.       KAFKA_ADVERTISED_PORT: 9092
  31.       KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181/kafka
  32.       KAFKA_CREATE_TOPICS: "data-connector-inbound:4:1"
  33.     volumes:
  34.      - /var/run/docker.sock:/var/run/docker.sock
  35.     depends_on:
  36.      - zookeeper
  37.   sandbox:
  38.    #image: sequenceiq/spark:1.6.0
  39.     build:
  40.       context: .
  41.       dockerfile: Dockerfile.sandbox
  42.     ports:
  43.      - "8088:8088"
  44.       - "8042:8042"
  45.       - "4040-4044:4040-4044"
  46.     command: -d
  47.     volumes:
  48.      - "hadoop:/usr/local/hadoop"
  49.       - "spark:/usr/local/spark"
  50.       - "/home/vagrant/data/spark:/opt/data"
  51.   cassandra:
  52.     image: cassandra
  53.     ports:
  54.     - "9042:9042"
  55.   jobserver:
  56.     build:
  57.       context: .
  58.       dockerfile: Dockerfile.jobserver
  59.     ports:
  60.      - "8090:8090"
  61.       - "9999:9999"
  62.     volumes_from:
  63.      - sandbox:ro
  64.     depends_on:
  65.      - sandbox
  66.   nifi:
  67.     image: mkobit/nifi
  68.     ports:
  69.      - "8080:8080"
  70.       - "8081:8081"
  71.     volumes:
  72.      - "/home/vagrant/data/nifi:/opt/nifi/data"
  73.   elasticsearch:
  74.     image: elasticsearch:latest
  75.     command: elasticsearch -Des.network.host=0.0.0.0
  76.     ports:
  77.      - "9200:9200"
  78.       - "9300:9300"
  79.   logstash:
  80.     build: logstash/
  81.     command: logstash -f /etc/logstash/conf.d/logstash.conf
  82.     volumes:
  83.      - ./logstash/log:/etc/log
  84.     ports:
  85.      - "5000:5000"
  86.     depends_on:
  87.      - elasticsearch
  88.       - kafka
  89.       - zookeeper
  90.   kibana:
  91.     build: kibana/
  92.     volumes:
  93.      - ./kibana/config/:/opt/kibana/config/
  94.     ports:
  95.      - "5601:5601"
  96. volumes:
  97.   spark: {}
  98.   hadoop: {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement