-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-bank.yml
70 lines (65 loc) · 1.6 KB
/
docker-bank.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
---
version: '2.2'
services:
command-generator:
build:
context: command-generator
container_name: command-generator
environment:
KAFKA_BROKERS: "kafka-1:19092,kafka-2:29092,kafka-3:39092"
SCHEMA_REGISTRY_URL: "http://schema-registry:18081"
mem_limit: 200m
restart: always
command-handler:
build:
context: command-handler
container_name: command-handler
depends_on:
- command-generator
environment:
DB_PORT: "25432"
DB_HOSTNAME: "db"
KAFKA_BROKERS: "kafka-1:19092,kafka-2:29092,kafka-3:39092"
SCHEMA_REGISTRY_URL: "http://schema-registry:18081"
mem_limit: 200m
restart: always
heartbeat:
build:
context: heartbeat
container_name: heartbeat
ports:
- "17888:17888"
depends_on:
- command-generator
- command-handler
environment:
KAFKA_BROKERS: "kafka-1:19092,kafka-2:29092,kafka-3:39092"
SCHEMA_REGISTRY_URL: "http://schema-registry:18081"
mem_limit: 150m
restart: always
graphql-endpoint:
build:
context: graphql-endpoint
container_name: graphql-endpoint
ports:
- "8888:8888"
depends_on:
- command-handler
environment:
DB_PORT: "25432"
DB_HOSTNAME: "db"
KAFKA_BROKERS: "kafka-1:19092,kafka-2:29092,kafka-3:39092"
SCHEMA_REGISTRY_URL: "http://schema-registry:18081"
mem_limit: 250m
restart: always
frontend:
build:
context: frontend
container_name: frontend
ports:
- "8181:80"
depends_on:
- graphql-endpoint
environment:
- NGINX_PORT=80
restart: always