-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-infra.yml
62 lines (56 loc) · 1.35 KB
/
docker-compose-infra.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
name: tms-infra
services:
postgres:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: password
ports:
- 5432:5432
volumes:
- ./pg-init.sql:/docker-entrypoint-initdb.d/pg-init.sql
pgadmin:
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: password
PGADMIN_LISTEN_ADDRESS: 0.0.0.0
ports:
- 9090:80
volumes:
- ./servers.json:/pgadmin4/servers.json
zookeeper:
image: wurstmeister/zookeeper
ports:
- 2181:2181
ulimits:
nofile:
soft: 65536
hard: 65536
volumes:
- zk-data:/var/lib/zookeeper/data
- zk-log:/var/lib/zookeeper/log
kafka:
image: wurstmeister/kafka:2.13-2.7.0
depends_on:
- zookeeper
ports:
- 9092:9092
environment:
KAFKA_ADVERTISED_HOST_NAME: ${HOST_IP}
KAFKA_ADVERTISED_PORT: 9092
KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'false'
KAFKA_CREATE_TOPICS: "bank:3:1,transfers-reply:3:1,dead-letter-queue:3:1"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- kafka-data:/var/lib/kafka/data
volumes:
kafka-data:
zk-data:
zk-log:
# docker network create localdev --subnet 10.0.1.0/24
#networks:
# default:
# name: localdev