Skip to content

Instantly share code, notes, and snippets.

@trahloff
Created April 11, 2017 12:30
Show Gist options
  • Save trahloff/2608944d71647eda25d4c167a72515e7 to your computer and use it in GitHub Desktop.
Save trahloff/2608944d71647eda25d4c167a72515e7 to your computer and use it in GitHub Desktop.
version: '2'
networks:
default:
external:
name: kafka
services:
kafka_broker:
container_name: kafka_broker
image: spotify/kafka
ports:
- "2181:2181"
- "9092:9092"
environment:
ADVERTISED_HOST: kafka_broker
ADVERTISED_PORT: 9092
kafka_api:
container_name: kafka_api
build: ./db-api
image: trahloff/kafka_api
depends_on:
- kafka_broker
ports:
- "54321:54321"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment