-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
123 lines (112 loc) · 2.81 KB
/
docker-compose.yaml
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
version: '3.3'
services:
bin-user:
build:
context: .
dockerfile: ./docker/services/dockerfile
args:
- SERVICE=user
- PRESET=dev-posix
volumes:
- ./configs/:/ucu-bank/configs/:ro
- ./configs/main.docker.json:/ucu-bank/configs/main.json:ro
depends_on:
- mongo-db
bin-account:
build:
context: .
dockerfile: ./docker/services/dockerfile
args:
- SERVICE=account
- PRESET=dev-posix
volumes:
- ./configs/:/ucu-bank/configs/:ro
- ./configs/main.docker.json:/ucu-bank/configs/main.json:ro
depends_on:
- bin-user
bin-transaction:
build:
context: .
args:
- SERVICE=transaction
- PRESET=dev-posix
dockerfile: ./docker/services/dockerfile
volumes:
- ./configs/:/ucu-bank/configs/:ro
- ./configs/main.docker.json:/ucu-bank/configs/main.json:ro
depends_on:
- postgres-db
- bin-account
- queue
bin-notification:
build:
context: .
args:
- SERVICE=notification
- PRESET=dev-posix
dockerfile: ./docker/services/dockerfile
volumes:
- ./configs/:/ucu-bank/configs/:ro
- ./configs/main.docker.json:/ucu-bank/configs/main.json:ro
- ~/.aws:/root/.aws:ro
depends_on:
- postgres-db
- bin-account
- queue
bin-auth:
build:
context: .
dockerfile: ./docker/services/dockerfile
args:
- SERVICE=auth
- PRESET=dev-posix
volumes:
- ./configs/:/ucu-bank/configs/:ro
- ./configs/main.docker.json:/ucu-bank/configs/main.json:ro
depends_on:
- bin-user
- auth-hash
bin-gateway:
build:
context: .
dockerfile: ./docker/services/dockerfile
args:
- SERVICE=gateway
- PRESET=dev-posix
volumes:
- ./configs/:/ucu-bank/configs/:ro
- ./configs/main.docker.json:/ucu-bank/configs/main.json:ro
- ./configs/gateway/gateway_config.json:/ucu-bank/gateway_config.json:ro
- /ucu-bank/logs
depends_on:
- bin-auth
- bin-transaction
- bin-account
- bin-user
ports:
- 2020:2020
auth-hash:
image: redis
mongo-db:
build: docker/mongo-db/
command: ["mongod", "--replSet", "rs0", "--bind_ip", "localhost,mongo-db"]
postgres-db:
build: ./docker/postgres-db/
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=transactions
queue:
build: ./docker/queue/
environment:
- KAFKA_CFG_ZOOKEEPER_CONNECT=keeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:9092
depends_on:
- keeper
ports:
- 9092:9092
keeper:
image: bitnami/zookeeper:3.7
environment:
- ALLOW_ANONYMOUS_LOGIN=yes