forked from kbastani/event-sourcing-microservices-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
125 lines (114 loc) · 2.67 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
version: "3.3"
services:
discovery-service:
environment:
SPRING_PROFILES_ACTIVE: docker
PROMETHEUS_URL: "prometheus-pushgateway:9091"
image: hyperskale/discovery-service:0.0.1-SNAPSHOT
ports:
- "8761:8761/tcp"
deploy:
replicas: 1
edge-service:
environment:
SPRING_PROFILES_ACTIVE: docker
PROMETHEUS_URL: "prometheus-pushgateway:9091"
image: hyperskale/edge-service:0.0.1-SNAPSHOT
ports:
- "9000:9000/tcp"
deploy:
replicas: 1
resources:
limits:
cpus: '0.5'
memory: '1000mb'
reservations:
cpus: '0.1'
memory: '250mb'
friend-service:
environment:
SPRING_PROFILES_ACTIVE: docker
PROMETHEUS_URL: "prometheus-pushgateway:9091"
image: hyperskale/friend-service:0.0.2-SNAPSHOT
deploy:
replicas: 1
resources:
limits:
cpus: '0.5'
memory: '1000mb'
reservations:
cpus: '0.1'
memory: '250mb'
user-service:
environment:
SPRING_PROFILES_ACTIVE: docker
PROMETHEUS_URL: "prometheus-pushgateway:9091"
image: hyperskale/user-service:0.0.2-SNAPSHOT
deploy:
replicas: 1
resources:
limits:
memory: '1000mb'
cpus: '0.5'
reservations:
cpus: '0.1'
memory: '250mb'
recommendation-service:
environment:
SPRING_PROFILES_ACTIVE: docker
PROMETHEUS_URL: "prometheus-pushgateway:9091"
image: hyperskale/recommendation-service:0.0.1-SNAPSHOT
deploy:
replicas: 1
resources:
limits:
cpus: '0.5'
memory: '1000mb'
reservations:
cpus: '0.1'
memory: '250mb'
kafka:
environment:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:29092
KAFKA_BROKER_ID: 1
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:32181
image: confluentinc/cp-kafka:latest
ports:
- "29092:29092/tcp"
deploy:
replicas: 1
zookeeper:
environment:
ZOOKEEPER_CLIENT_PORT: 32181
ZOOKEEPER_TICK_TIME: 2000
image: confluentinc/cp-zookeeper:latest
ports:
- "32181:32181/tcp"
deploy:
replicas: 1
friend-db:
image: postgres:latest
environment:
POSTGRES_PASSWORD: example
ports:
- "5432/tcp"
deploy:
replicas: 1
user-db:
image: postgres:latest
environment:
POSTGRES_PASSWORD: example
ports:
- "5432/tcp"
deploy:
replicas: 1
neo4j:
environment:
NEO4J_AUTH: none
image: neo4j:3.5.0
ports:
- "7474:7474/tcp"
- "7687:7687/tcp"
deploy:
replicas: 1