-
Notifications
You must be signed in to change notification settings - Fork 196
/
docker-compose.yml
88 lines (79 loc) · 2.04 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: "3.4"
volumes:
mongodb:
services:
eventhorizon-test:
build:
context: .
dockerfile: Dockerfile.test
depends_on:
- mongodb-docker
- gpubsub
- kafka
- redis
- nats
environment:
MONGODB_ADDR: mongodb-docker:27017
PUBSUB_EMULATOR_HOST: gpubsub:8793
KAFKA_ADDR: kafka:9092
REDIS_ADDR: redis:6379
NATS_ADDR: nats:4222
command: [-c, make test test_integration]
mongodb-docker:
image: bitnami/mongodb:5.0
ports:
- 27017:27017
environment:
MONGODB_REPLICA_SET_MODE: primary
ALLOW_EMPTY_PASSWORD: "yes"
volumes:
- mongodb:/data/db
mongodb:
image: bitnami/mongodb:5.0
ports:
- 27017:27017
environment:
MONGODB_REPLICA_SET_MODE: primary
MONGODB_ADVERTISED_HOSTNAME: localhost # Needed to connect from localhost.
ALLOW_EMPTY_PASSWORD: "yes"
volumes:
- mongodb:/data/db
gpubsub:
image: gcr.io/google.com/cloudsdktool/cloud-sdk:367.0.0-emulators
ports:
- 8793:8793
entrypoint:
[gcloud, beta, emulators, pubsub, start, --host-port=0.0.0.0:8793]
zookeeper:
image: bitnami/zookeeper:3.6.2
ports:
- 2181:2181
environment:
ALLOW_ANONYMOUS_LOGIN: "yes"
kafka:
image: wurstmeister/kafka
depends_on:
- zookeeper
ports:
- 9093:9093
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
ALLOW_PLAINTEXT_LISTENER: "yes"
KAFKA_LISTENERS: INTERNAL://:9092,EXTERNAL://:9093
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: INTERNAL://kafka:9092,EXTERNAL://localhost:9093
KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL
KAFKA_OFFSETS_TOPIC_NUM_PARTITIONS: 5
volumes:
- /var/run/docker.sock:/var/run/docker.sock
redis:
image: redis:6.2-alpine3.15
ports:
- 6379:6379
entrypoint: [redis-server, --appendonly yes]
nats:
image: nats:2.6-alpine3.14
ports:
- 4222:4222
command: [-js]