Skip to content

Instantly share code, notes, and snippets.

@gonzalo-bulnes
Last active October 1, 2015 20:28
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 gonzalo-bulnes/2a47db94789e8dcb2e23 to your computer and use it in GitHub Desktop.
Save gonzalo-bulnes/2a47db94789e8dcb2e23 to your computer and use it in GitHub Desktop.
Setup a development environment for Bottled Water using Docker Compose.
zookeeper:
image: confluent/zookeeper
ports:
- 2181
kafka:
image: confluent/kafka
ports:
- "9092:9092"
links:
- zookeeper
environment:
KAFKA_LOG_CLEANUP_POLICY: compact
schema-registry:
image: confluent/schema-registry
ports:
- "8081:8081"
links:
- zookeeper
- kafka
environment:
SCHEMA_REGISTRY_AVRO_COMPATIBILITY_LEVEL: none
postgres:
image: confluent/postgres-bw:0.1
ports:
- "5432:5432"
environment:
PGHOST: postgres
PGUSER: postgres
consumer:
image: confluent/tools
entrypoint: ['/confluent-tools.sh', 'kafka-avro-console-consumer']
links:
- zookeeper
- kafka
- schema-registry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment