-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
46 lines (42 loc) · 1.01 KB
/
docker-compose.yaml
File metadata and controls
46 lines (42 loc) · 1.01 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
services:
zookeeper:
image: zookeeper
container_name: zookeeper
restart: always
ports:
- "2181:2181"
kafka:
image: confluentinc/cp-kafka
depends_on:
- zookeeper
ports:
- "9092:9092"
restart: always
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: ${KAFKA_ADVERTISED_LISTENERS}
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_JVM_PERFORMANCE_OPTS: "-Xms512M -Xmx750M"
cache:
image: redis:8.0-M02-alpine
restart: always
ports:
- ${REDIS_PORT_MAP}
environment:
REDIS_PASSWORD: ${REDIS_PASSWORD}
command: redis-server --loglevel warning --requirepass ${REDIS_PASSWORD}
volumes:
- cache:/data
postgres:
image: postgres:17.2-alpine
restart: always
ports:
- ${POSTGRES_PORT_MAP}
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- ${POSTGRES_VOLUME_PATH}
volumes:
cache:
driver: local