-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
71 lines (65 loc) · 1.53 KB
/
docker-compose.yaml
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
version: "3"
services:
postgres:
image: postgres:latest
environment:
POSTGRES_USER: your_postgres_user
POSTGRES_PASSWORD: your_postgres_password
POSTGRES_DB: your_database_name
ports:
- "5432:5432"
networks:
- app-network
kafka:
image: wurstmeister/kafka:latest
environment:
KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9093,OUTSIDE://localhost:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
KAFKA_LISTENERS: INSIDE://0.0.0.0:9093,OUTSIDE://0.0.0.0:9092
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_CREATE_TOPICS: "MESSAGES:1:1"
ports:
- "9092:9092"
networks:
- app-network
depends_on:
- zookeeper
zookeeper:
image: wurstmeister/zookeeper:latest
ports:
- "2181:2181"
networks:
- app-network
redis:
image: redis:latest
environment:
REDIS_HOST: redis
ports:
- "6379:6379"
networks:
- app-network
app:
build:
context: .
dockerfile: Dockerfile
depends_on:
- postgres
- kafka
- redis
environment:
PORT: 8000
KAFKA_BROKER: kafka:9092
KAFKA_USERNAME: your_kafka_username
KAFKA_PASSWORD: your_kafka_password
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_USERNAME: your_redis_username
REDIS_PASSWORD: your_redis_password
ports:
- "8000:8000"
networks:
- app-network
networks:
app-network:
driver: bridge