Last active
November 13, 2016 15:29
-
-
Save arthurpham/d0167f32b7c5c77879748b541159dc61 to your computer and use it in GitHub Desktop.
scrapy-cluster-docker-cloud-stack
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
crawler: | |
environment: | |
- REDIS_PORT=6379 | |
image: 'istresearch/scrapy-cluster:crawler-dev-alpine' | |
links: | |
- kafka | |
- redis | |
- zookeeper | |
restart: always | |
target_num_containers: 3 | |
kafka: | |
environment: | |
- KAFKA_ADVERTISED_HOST_NAME=$DOCKERCLOUD_CONTAINER_HOSTNAME | |
- KAFKA_ADVERTISED_PORT=9092 | |
- KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1 | |
- 'KAFKA_ZOOKEEPER_CONNECT=zookeeper-1:2181' | |
expose: | |
- '9092' | |
image: 'wurstmeister/kafka:latest' | |
links: | |
- zookeeper | |
restart: always | |
volumes: | |
- '/var/run/docker.sock:/var/run/docker.sock' | |
kafka-monitor: | |
environment: | |
- REDIS_PORT=6379 | |
image: 'istresearch/scrapy-cluster:kafka-monitor-dev-alpine' | |
links: | |
- kafka | |
- redis | |
restart: always | |
redis: | |
expose: | |
- '6379' | |
image: 'redis:latest' | |
restart: always | |
redis-monitor: | |
environment: | |
- REDIS_PORT=6379 | |
image: 'istresearch/scrapy-cluster:redis-monitor-dev-alpine' | |
links: | |
- kafka | |
- redis | |
- zookeeper | |
restart: always | |
zookeeper: | |
expose: | |
- '2181' | |
image: 'wurstmeister/zookeeper:latest' | |
restart: always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment