-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-bank.yml
106 lines (98 loc) · 2.2 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
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
---
version: '2.2'
services:
bkes-bank:
image: gklijs/bkes:latest
container_name: bkes-bank
ports:
- 50031:50030
volumes:
- bkes-bank-data:/opt/data
environment:
DATA_PATH: /opt/data
KAFKA_TOPIC: bank_events
KAFKA_BROKERS: kafka:19092
MAX_CONSUMER_THREADS: 8
RUST_LOG: INFO
restart: always
bkes-user:
image: gklijs/bkes:latest
container_name: bkes-user
ports:
- 50032:50030
volumes:
- bkes-user-data:/opt/data
environment:
DATA_PATH: /opt/data
KAFKA_TOPIC: user_events
KAFKA_BROKERS: kafka:19092
MAX_CONSUMER_THREADS: 8
RUST_LOG: INFO
restart: always
bkes-transfer:
image: gklijs/bkes:latest
container_name: bkes-transfer
ports:
- 50034:50030
volumes:
- bkes-transfer-data:/opt/data
environment:
DATA_PATH: /opt/data
KAFKA_TOPIC: transfer_events
KAFKA_BROKERS: kafka:19092
MAX_CONSUMER_THREADS: 8
RUST_LOG: INFO
restart: always
command-handler:
build:
context: command-handler
container_name: command-handler
depends_on:
- bkes-bank
- bkes-user
- bkes-transfer
environment:
KAFKA_BROKERS: "kafka:19092"
SCHEMA_REGISTRY_URL: "http://schema-registry:8081"
GRPC_FROM_DOCKER: 1
mem_limit: 300m
restart: always
projector:
build:
context: projector
container_name: projector
environment:
KAFKA_BROKERS: "kafka:19092"
SCHEMA_REGISTRY_URL: "http://schema-registry:8081"
mem_limit: 300m
restart: always
graphql-endpoint:
build:
context: graphql-endpoint
container_name: graphql-endpoint
ports:
- "8888:8888"
depends_on:
- command-handler
- projector
environment:
KAFKA_BROKERS: "kafka:19092"
SCHEMA_REGISTRY_URL: "http://schema-registry:8081"
PEDESTAL_HOST: 0.0.0.0
mem_limit: 400m
restart: always
frontend:
build:
context: frontend
container_name: frontend
ports:
- "8181:80"
depends_on:
- graphql-endpoint
environment:
- NGINX_PORT=80
restart: always
volumes:
bkes-bank-data:
bkes-user-data:
bkes-transfer-data: