forked from RedHatInsights/platform-receptor-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (51 loc) · 1.51 KB
/
docker-compose.yml
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
# This docker-compose file spins up containers for kafka, zookeeper, and the receptor controller
version: "3"
services:
zookeeper:
image: confluentinc/cp-zookeeper
environment:
- ZOOKEEPER_CLIENT_PORT=32181
- ZOOKEEPER_SERVER_ID=1
kafka:
image: confluentinc/cp-kafka
ports:
- 29092:29092
depends_on:
- zookeeper
environment:
- KAFKA_LISTENERS=INTERNAL://kafka:9092,EXTERNAL://kafka:29092
- KAFKA_ADVERTISED_LISTENERS=INTERNAL://kafka:9092,EXTERNAL://localhost:29092
- KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT
- KAFKA_INTER_BROKER_LISTENER_NAME=INTERNAL
- KAFKA_BROKER_ID=1
- KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:32181
- KAFKA_MAX_REQUEST_SIZE=1048576
redis:
image: redis
ports:
- 6379:6379
gateway:
build:
context: ./
dockerfile: ./cmd/gateway/Dockerfile
image: platform-receptor-controller-gateway
command: ./ws-gateway -wsAddr gateway:8888
ports:
- 8888:8888 # websocket gateway
- 9090:9090 # gateway management server
environment:
- RECEPTOR_CONTROLLER_LOG_LEVEL=debug
depends_on:
- kafka
job-receiver:
build:
context: ./
dockerfile: ./cmd/job_receiver/Dockerfile
image: platform-receptor-controller-job-receiver
ports:
- 8081:8081 # job_receiver management server
environment:
- PLACEHOLDER_ENV_VAR=placeholder_env_var
depends_on:
- kafka