-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (58 loc) · 1.57 KB
/
docker-compose.yml
File metadata and controls
62 lines (58 loc) · 1.57 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
x-logging: &default-logging
options:
max-size: "12m"
max-file: "5"
driver: json-file
services:
function-stream:
build:
context: .
dockerfile: Dockerfile
image: function-stream:latest
container_name: function-stream
hostname: function-stream
ports:
- "8080:8080"
volumes:
- function-stream-data:/app/data
- function-stream-logs:/app/logs
environment:
- FUNCTION_STREAM_CONFIG=/app/conf/config.yaml
logging: *default-logging
networks:
- spnet
depends_on:
- kafka
kafka:
image: apache/kafka:3.8.0
hostname: kafka
ports:
- "9092:9092"
environment:
- KAFKA_CFG_NODE_ID=0
- KAFKA_CFG_PROCESS_ROLES=controller,broker
- KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=0@kafka:9093
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093,OUTSIDE://:9094
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092,OUTSIDE://localhost:9094
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,OUTSIDE:PLAINTEXT
- KAFKA_CFG_INTER_BROKER_LISTENER_NAME=PLAINTEXT
- KAFKA_CFG_MESSAGE_MAX_BYTES=5000012
- KAFKA_CFG_FETCH_MESSAGE_MAX_BYTES=5000012
- KAFKA_CFG_REPLICA_FETCH_MAX_BYTES=10000000
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
volumes:
- kafka3:/bitnami
logging: *default-logging
networks:
- spnet
volumes:
kafka3:
function-stream-data:
function-stream-logs:
networks:
spnet:
name: spnet
driver: bridge
ipam:
config:
- subnet: 172.31.0.0/16