-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-bank.yml
57 lines (53 loc) · 1.46 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
---
version: '2.2'
services:
command-handler:
build:
context: command-handler
container_name: command-handler
environment:
DB_PORT: "25432"
DB_HOSTNAME: "db-ch"
KAFKA_BROKERS: "kafka-1:19093,kafka-2:19095,kafka-3:19097"
SCHEMA_REGISTRY_URL: "http://schema-registry:8081"
SSL_KEYSTORE_LOCATION: "kafka.command-handler.keystore.jks"
SSL_TRUSTSTORE_LOCATION: "kafka.command-handler.truststore.jks"
SSL_PASSWORD: "kafka-graphql-examples"
volumes:
- kafka-graphql-certs:/etc/kafka/secrets
mem_limit: 300m
restart: always
graphql-endpoint:
build:
context: graphql-endpoint
container_name: graphql-endpoint
ports:
- "8888:8888"
depends_on:
- command-handler
environment:
DB_PORT: "25431"
DB_HOSTNAME: "db-ge"
KAFKA_BROKERS: "kafka-1:19093,kafka-2:19095,kafka-3:19097"
SCHEMA_REGISTRY_URL: "http://schema-registry:8081"
SSL_KEYSTORE_LOCATION: "kafka.graphql-endpoint.keystore.jks"
SSL_TRUSTSTORE_LOCATION: "kafka.graphql-endpoint.truststore.jks"
SSL_PASSWORD: "kafka-graphql-examples"
volumes:
- kafka-graphql-certs:/etc/kafka/secrets
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:
kafka-graphql-certs:
external: true