-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (58 loc) · 1.66 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
version: '2.0'
services:
zk:
image: wurstmeister/zookeeper
kafka:
image: wurstmeister/kafka
expose:
- 9092
hostname: kafka
links:
- zk
environment:
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_ADVERTISED_PORT: 9092
KAFKA_CREATE_TOPICS: "destination:1:1,source:100:1"
KAFKA_ZOOKEEPER_CONNECT: zk:2181
meetup:
image: golang
working_dir: "/opt/go/src/github.com/robertacosta/go-integration-example"
command: bash -c "./bin/build && ./build/meetup server"
ports:
- "50000:50000"
links:
- kafka
- meetuptest
environment:
GOPATH: /opt/go/
KAFKA_BROKERS: "kafka:9092"
KAFKA_TOPIC: "source"
SERVICE_ADDRESS: "0.0.0.0:50000"
TEST_SERVICE_ADDRESS: "meetuptest:50010"
volumes:
- .:/opt/go/src/github.com/robertacosta/go-integration-example
meetuptest:
image: golang
working_dir: "/opt/go/src/github.com/robertacosta/go-integration-example"
command: bash -c "./bin/build && ./build/meetup testserver"
ports:
- "50010:50010"
links:
- kafka
environment:
GOPATH: /opt/go/
TEST_SERVICE_ADDRESS: "0.0.0.0:50010"
volumes:
- .:/opt/go/src/github.com/robertacosta/go-integration-example
meetupworker:
image: golang
working_dir: "/opt/go/src/github.com/robertacosta/go-integration-example"
command: bash -c "./bin/build && ./build/meetup worker"
links:
- kafka
environment:
GOPATH: /opt/go/
KAFKA_BROKERS: "kafka:9092"
KAFKA_TOPIC: "source"
volumes:
- .:/opt/go/src/github.com/robertacosta/go-integration-example