-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
50 lines (47 loc) · 1.36 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
version: '3.7'
services:
php:
build:
context: ../../docker/php
dockerfile: Dockerfile.alpine
args:
PHP_IMAGE_TAG: 8.0-cli-alpine3.14
LIBRDKAFKA_VERSION: v1.8.2
PHP_EXTENSION: arnaud-lb/php-rdkafka
PHP_EXTENSION_VERSION: 5.0.0
tty: true
working_dir: /app
volumes:
- ./:/app
zookeeper:
image: confluentinc/cp-zookeeper:6.1.1
environment:
ZOOKEEPER_CLIENT_PORT: 2182
ZOOKEEPER_TICK_TIME: 2000
kafka:
image: confluentinc/cp-kafka:6.1.1
depends_on:
- zookeeper
ports:
- 9096:9096
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2182'
KAFKA_ADVERTISED_LISTENERS: 'PLAINTEXT://kafka:9096'
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
KAFKA_NUM_PARTITIONS: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
kafka-schema-registry:
image: confluentinc/cp-schema-registry:6.1.1
depends_on:
- zookeeper
- kafka
ports:
- "9083:9083"
environment:
SCHEMA_REGISTRY_HOST_NAME: kafka-schema-registry
SCHEMA_REGISTRY_LISTENERS: "http://0.0.0.0:9083"
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: 'zookeeper:2182'
SCHEMA_REGISTRY_AVRO_COMPATIBILITY_LEVEL: 'full_transitive'