-
Notifications
You must be signed in to change notification settings - Fork 174
/
Copy pathdocker-compose-gravity-test.yml
81 lines (75 loc) · 2.02 KB
/
docker-compose-gravity-test.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
version: '3.2'
services:
source-db:
image: mysql:5.7.18
container_name: source-db-test
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
command:
# test for binlog rotate case
- --max-binlog-size=409600
logging:
driver: none
volumes:
- ./mycnf:/etc/mysql/conf.d
target-db:
image: mysql:5.7.18
container_name: target-db-test
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
logging:
driver: none
volumes:
- ./mycnf:/etc/mysql/conf.d
mongo:
container_name: mongo
build:
context: ./
dockerfile: Dockerfile.mongo.setup
ports:
- 27017
logging:
driver: none
command: mongod --replSet rs1
zookeeper:
image: zookeeper:3.4.10
container_name: zookeeper
logging:
driver: none
kafka:
image: confluentinc/cp-kafka:5.1.0
container_name: kafka
depends_on:
- zookeeper
environment:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
logging:
driver: none
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2
container_name: elasticsearch
environment:
- http.host=0.0.0.0
- xpack.security.transport.filter.allow=0.0.0.0
- cluster.name=gravity
- "ES_JAVA_OPTS=-Xms750m -Xmx750m"
logging:
driver: none
gravity-test:
build:
context: ./
dockerfile: Dockerfile.test.gravity
depends_on:
- mongo
environment:
- MONGO_HOST=mongo
- KAFKA_BROKER=kafka:9092
- ELASTICSEARCH_URLS=http://elasticsearch:9200
command: ["bash", "./wait-for-it.sh", "source-db:3306","-t", "0",
"--", "./wait-for-it.sh", "target-db:3306","-t", "0",
"--", "./wait-for-it.sh", "mongo:27017", "-t", "0",
"--", "./wait-for-it.sh", "kafka:9092", "-t", "0",
"--", "./wait-for-it.sh", "elasticsearch:9200", "-t", "0",
"--", "make", "go-test"]