-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
53 lines (49 loc) · 1.29 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
services:
app1:
container_name: app
build: .
volumes:
- ./app1:/app
- $GOPATH/pkg/mod/cache:/go/pkg/mod/cache
working_dir: /app
depends_on:
- zookeeper
- kafka
- googlecloud
environment:
PUBSUB_EMULATOR_HOST: googlecloud:8085
ports:
- 8080:8080
- 8081:8081
zookeeper:
container_name: zk
attach: false
image: confluentinc/cp-zookeeper:7.7.1
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
ports:
- 2181:2181
kafka:
container_name: kafka
attach: false
image: confluentinc/cp-kafka:7.7.1
depends_on:
- zookeeper
ports:
- 9093:9093
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zk:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:9093
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
googlecloud:
container_name: gcpps
attach: false
image: google/cloud-sdk:498.0.0
entrypoint: gcloud --quiet beta emulators pubsub start --host-port=0.0.0.0:8085 --verbosity=debug --log-http
ports:
- 8085:8085
restart: unless-stopped