-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
93 lines (86 loc) · 2.31 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
version: '3'
services:
kong-dev:
build: ./docker-images/kong-dev
container_name: kong-dev
entrypoint: tail -f /dev/null
working_dir: /workspace/kong-plugin-kafka-log
depends_on:
- postgres
volumes:
- ./kong-plugin-kafka-log:/workspace/kong-plugin-kafka-log
networks:
kong-net:
ipv4_address: 172.28.1.1
cassandra:
image: cassandra:3.9
container_name: kong-tests-cassandra
ports:
- "9042:9042"
networks:
kong-net:
ipv4_address: 172.28.1.2
postgres:
build: ./docker-images/postgres
container_name: kong-tests-postgres
command: postgres -c "config_file=/etc/postgresql/postgresql.conf"
volumes:
- "$PWD/docker-images/postgres/postgres.conf:/etc/postgresql/postgresql.conf"
ports:
- "5432:5432"
healthcheck:
test: ["CMD", "pg_isready", "-U", "kong"]
interval: 30s
timeout: 30s
retries: 3
restart: on-failure
stdin_open: true
tty: true
networks:
kong-net:
ipv4_address: 172.28.1.3
redis:
image: redis
container_name: kong-tests-redis
ports:
- "6379:6379"
networks:
kong-net:
ipv4_address: 172.28.1.4
zookeeper:
image: zookeeper:3.4.9
restart: unless-stopped
hostname: zookeeper
ports:
- "2181:2181"
networks:
kong-net:
ipv4_address: 172.28.1.5
environment:
ZOO_MY_ID: 1
ZOO_PORT: 2181
ZOO_SERVERS: server.1=zookeeper:2888:3888
kafka:
image: confluentinc/cp-kafka:5.1.0
hostname: kafka
ports:
- "9092:9092"
networks:
kong-net:
ipv4_address: 172.28.1.6
environment:
KAFKA_ADVERTISED_LISTENERS: LISTENER_DOCKER_INTERNAL://kafka:19092,LISTENER_DOCKER_EXTERNAL://172.28.1.6:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: LISTENER_DOCKER_INTERNAL:PLAINTEXT,LISTENER_DOCKER_EXTERNAL:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: LISTENER_DOCKER_INTERNAL
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
KAFKA_BROKER_ID: 1
KAFKA_LOG4J_LOGGERS: "kafka.controller=INFO,kafka.producer.async.DefaultEventHandler=INFO,state.change.logger=INFO"
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
depends_on:
- zookeeper
networks:
kong-net:
ipam:
driver: default
config:
- subnet: 172.28.0.0/16