-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
55 lines (55 loc) · 1.42 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
version: "2"
services:
write_service:
build: ./clojure-leiningen-rest-service
image: "419056267649.dkr.ecr.us-east-1.amazonaws.com/write_service"
ports:
- "3000:3000"
stream_processor:
build: ./java-dropwizard-rest-service
image: "419056267649.dkr.ecr.us-east-1.amazonaws.com/stream_processor"
ports:
- "5005:5005"
environment:
JAVA_OPTS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
read_service:
build: ./java-dropwizard-rest-service
image: "419056267649.dkr.ecr.us-east-1.amazonaws.com/read_service"
ports:
- "8080:8080"
- "5006:5005"
environment:
JAVA_OPTS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
postgres:
image: postgres:9.6-alpine
volumes:
- postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- default
- makefile_microservices
zookeeper:
image: wurstmeister/zookeeper:3.4.6
volumes:
- zookeeper:/opt/zookeeper-3.4.6/data
kafka:
image: wurstmeister/kafka:0.10.2.0
environment:
KAFKA_ADVERTISED_PORT: 9092
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
ports:
- "9092:9092"
volumes:
- kafka:/kafka
networks:
- default
- makefile_microservices
networks:
makefile_microservices:
external: true
volumes:
postgres:
zookeeper:
kafka: