-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
72 lines (63 loc) · 1.59 KB
/
docker-compose.yaml
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
version: '3.4'
# NOTE: Cassandra service takes a while to start (~1 minute).
# So the Kafka and Cassandra service cannot be "linked" directly
# to go-eventstore-query, some delay is required after starting Zookeeper,
# Kafka, and Cassandra before go-eventstore-query can be started and used.
# See the run_test.sh file.
services:
cassandra:
image: cassandra:latest
container_name: cassandra
ports:
- "9042:9042"
kafka:
image: wurstmeister/kafka
container_name: kafka
environment:
KAFKA_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
links:
- zookeeper
ports:
- "9092:9092"
mongo:
image: mongo
container_name: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
ports:
- "27017:27017"
zookeeper:
image: wurstmeister/zookeeper
container_name: zookeeper
ports:
- 2181:2181
go-eventpersistence:
image: terrextech/go-eventpersistence:v3.0.0
env_file:
- ./.env.persistence
go-eventstore-query:
image: terrextech/go-eventstore-query:v3.0.0
env_file:
- ./.env.esquery
agg-device-cmd:
image: terrextech/agg-device-cmd:v1.0.0
env_file:
- ./.env.agg-device-cmd
agg-device-query:
build:
context: ../
dockerfile: Dockerfile_test
args:
SOURCE_REPO: agg-device-query
image: agg-device-query
env_file:
- ../.env
agg-device-query-test:
image: agg-device-query
command: go test -v ./...
env_file:
- ../.env
environment:
CGO_ENABLED: 0