forked from confluentinc/bottledwater-pg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
75 lines (74 loc) · 1.76 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# N.B. assumes you have set the environment variable
# KAFKA_ADVERTISED_HOST_NAME, in the environment of the host where you are
# running docker-compose, to the IP address of the Docker host.
#
# You can determine the Docker host IP with a command like:
#
# docker run --rm debian:latest ip route | awk '/^default via / { print $3 }'
zookeeper:
image: confluent/zookeeper
hostname: zookeeper
ports:
- '2181:2181'
kafka:
image: confluent/kafka:0.9.0.0-cp1
hostname: kafka
links:
- zookeeper
environment:
KAFKA_LOG_CLEANUP_POLICY:
KAFKA_ADVERTISED_HOST_NAME:
KAFKA_AUTO_CREATE_TOPICS_ENABLE:
ports:
- '9092:9092'
schema-registry:
image: confluent/schema-registry
hostname: schema-registry
links:
- zookeeper
- kafka
ports:
- '48081:8081'
environment:
SCHEMA_REGISTRY_AVRO_COMPATIBILITY_LEVEL: none
postgres:
build: ./tmp
dockerfile: Dockerfile.postgres
hostname: postgres
ports:
- '45432:5432'
bottledwater-json:
build: ./tmp
dockerfile: Dockerfile.client
hostname: bottledwater
links:
- postgres
- kafka
command: --output-format=json --allow-unkeyed
bottledwater-avro:
build: ./tmp
dockerfile: Dockerfile.client
hostname: bottledwater
links:
- postgres
- kafka
- schema-registry
command: --output-format=avro --allow-unkeyed
psql:
image: postgres:9.5
links:
- postgres
command: 'sh -c ''exec psql -h "$POSTGRES_PORT_5432_TCP_ADDR" -p "$POSTGRES_PORT_5432_TCP_PORT" -U postgres'''
kafka-avro-console-consumer:
image: confluent/tools
links:
- zookeeper
- kafka
- schema-registry
entrypoint: ['/confluent-tools.sh', 'kafka-avro-console-consumer']
kafka-tools:
image: confluent/tools
links:
- zookeeper
- kafka
entrypoint: /confluent-tools.sh