Created
June 20, 2016 15:45
-
-
Save mayhem/6922744fe1e8254e133109ee773ec32a to your computer and use it in GitHub Desktop.
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
version: '2' | |
services: | |
redis: | |
image: redis | |
zookeeper: | |
image: wurstmeister/zookeeper | |
ports: | |
- "2181:2181" | |
kafka: | |
image: wurstmeister/kafka | |
ports: | |
- "9092:9092" | |
environment: | |
KAFKA_ADVERTISED_HOST_NAME: 127.0.0.1 | |
KAFKA_CREATE_TOPICS: "test:1:1" | |
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
web: | |
build: . | |
command: dockerize -wait tcp:9092 -timeout 20s python manage.py runserver -h 0.0.0.0 -p 8000 | |
volumes: | |
- .:/code/listenbrainz-server | |
- ./data/app:/data | |
ports: | |
- "8000:8000" | |
depends_on: | |
- redis | |
- zookeeper | |
- kafka |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment