-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (50 loc) · 1.24 KB
/
docker-compose.yml
File metadata and controls
55 lines (50 loc) · 1.24 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
services:
postgres:
image: postgres:14
container_name: revenue_postgres
environment:
POSTGRES_DB: revenue_dashboard
POSTGRES_USER: kritsadakruapat
POSTGRES_PASSWORD: NewSecurePassword123!
ports:
- "5433:5432"
volumes:
- pgdata:/var/lib/postgresql/data
zookeeper:
image: confluentinc/cp-zookeeper:7.5.0
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
ports:
- '22181:2181'
kafka:
image: confluentinc/cp-kafka:7.5.0
depends_on:
- zookeeper
ports:
- "29092:9092" # ← maps internal Kafka port 9092 to host port 29092
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
streamlit_app:
build:
context: .
dockerfile: Dockerfile
container_name: revenue_dashboard_app
ports:
- "8501:8501"
depends_on:
- kafka
- postgres
environment:
DB_HOST: postgres
DB_PORT: 5432
DB_USER: kritsadakruapat
DB_PASS: NewSecurePassword123!
DB_NAME: revenue_dashboard
volumes:
- .:/app
volumes:
pgdata: