Skip to content

Instantly share code, notes, and snippets.

@mayhem
Created June 20, 2016 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mayhem/6922744fe1e8254e133109ee773ec32a to your computer and use it in GitHub Desktop.
Save mayhem/6922744fe1e8254e133109ee773ec32a to your computer and use it in GitHub Desktop.
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