-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
76 lines (67 loc) · 1.71 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
73
74
75
76
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
# etcd:
# image: quay.io/coreos/etcd:v3.3.10
# ports:
# - 2379:2379
# - 2380:2380
# environment:
# ETCD_ADVERTISE_CLIENT_URLS: "http://etcd:2379"
# ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379"
go-eventpersistence:
image: terrextech/go-eventpersistence:v3.0.0
env_file:
- ./.envp
go-eventstore-query:
image: terrextech/go-eventstore-query:v3.0.0
env_file:
- ./.envq
agg-disposalcap-cmd:
build:
context: ../
dockerfile: Dockerfile_test
args:
SOURCE_REPO: agg-disposalcap-cmd
image: agg-disposalcap-cmd
env_file:
- ../.env
agg-disposalcap-cmd-test:
image: agg-disposalcap-cmd
command: go test -v ./...
env_file:
- ../.env
environment:
CGO_ENABLED: 0