-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
152 lines (138 loc) · 3.55 KB
/
docker-compose.yml
File metadata and controls
152 lines (138 loc) · 3.55 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
version: "3.8"
services:
kafka:
image: docker.io/bitnami/kafka:3.8
container_name: kafka
volumes:
- "kafka_data:/bitnami"
networks:
- linkedin-network
environment:
# KRaft settings
- KAFKA_CFG_NODE_ID=0
- KAFKA_CFG_PROCESS_ROLES=controller,broker
- KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=0@kafka:9093
# Listeners
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
- KAFKA_CFG_INTER_BROKER_LISTENER_NAME=PLAINTEXT
kafbat-ui:
container_name: kafbat-ui
image: ghcr.io/kafbat/kafka-ui:latest
ports:
- 8090:8080
depends_on:
- kafka
networks:
- linkedin-network
environment:
KAFKA_CLUSTERS_0_NAME: local
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka:9092
KAFKA_CLUSTERS_0_KSQLDBSERVER: http://ksqldb0:8088
notification-db:
image: postgres
container_name: notification-db
environment:
- POSTGRES_DB=notificationDB
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
networks:
- linkedin-network
volumes:
- notification-db-data:/var/lib/postgresql/data
posts-db:
image: postgres
container_name: posts-db
environment:
- POSTGRES_DB=postsDB
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
networks:
- linkedin-network
volumes:
- posts-db-data:/var/lib/postgresql/data
user-db:
image: postgres
container_name: user-db
environment:
- POSTGRES_DB=userDB
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
networks:
- linkedin-network
volumes:
- user-db-data:/var/lib/postgresql/data
connections-db:
image: neo4j
container_name: connections-db
environment:
- NEO4J_AUTH=neo4j/password # Set your username and password
ports:
- "7474:7474" # HTTP port
- "7687:7687" # Bolt port
volumes:
- connections-db-data:/data # Persist data
networks:
- linkedin-network
discovery-server:
image: pallavi771/connectify-app/discovery-server
container_name: discovery-server
networks:
- linkedin-network
ports:
- "8761:8761"
posts-service:
image: pallavi771/connectify-app/posts-service
container_name: posts-service
networks:
- linkedin-network
depends_on:
- discovery-server
- posts-db
- kafka
user-service:
image: pallavi771/connectify-app/user-service
container_name: user-service
networks:
- linkedin-network
depends_on:
- discovery-server
- user-db
- kafka
notification-service:
image: pallavi771/connectify-app/notification-service
container_name: notification-service
networks:
- linkedin-network
depends_on:
- discovery-server
- notification-db
- kafka
connections-service:
image: pallavi771/connectify-app/connections-service
container_name: connections-service
networks:
- linkedin-network
depends_on:
- discovery-server
- connections-db
- kafka
api-gateway:
image: pallavi771/connectify-app/api-gateway
container_name: api-gateway
ports:
- "8080:8080"
networks:
- linkedin-network
depends_on:
- discovery-server
networks:
linkedin-network:
volumes:
kafka_data:
notification-db-data:
posts-db-data:
user-db-data:
connections-db-data: