-
Notifications
You must be signed in to change notification settings - Fork 41
/
docker-compose.yaml
139 lines (127 loc) · 2.75 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# Copyright (c) 2023 Cisco Systems, Inc. and its affiliates All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
version: "3.9"
services:
mongo:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
networks:
- bankapp-network
ui:
build:
context: ./ui
container_name: ui
hostname: ui
image: martian-bank-ui
ports:
- "3000:3000"
restart: always
env_file:
- ./ui/.env
networks:
- bankapp-network
nginx:
build:
context: ./nginx
container_name: nginx
hostname: nginx
image: martian-bank-nginx
ports:
- "8080:8080"
depends_on:
- customer-auth
- atm-locator
- ui
restart: always
networks:
- bankapp-network
customer-auth:
build:
context: ./customer-auth
container_name: customer-auth
hostname: customer-auth
image: martian-bank-customer-auth
ports:
- "8000:8000"
env_file:
- ./customer-auth/.env
restart: always
networks:
- bankapp-network
atm-locator:
build:
context: ./atm-locator
container_name: atm-locator
hostname: martian-bank-atm-locator
image: martian-bank-atm-locator
ports:
- "8001:8001"
env_file:
- ./atm-locator/.env
restart: always
networks:
- bankapp-network
dashboard:
container_name: dashboard
hostname: dashboard
ports:
- "5000:5000"
restart: always
image: martian-bank-dashboard
build:
context: .
dockerfile: dashboard/Dockerfile
environment:
ACCOUNT_HOST: accounts
TRANSACTION_HOST: transactions
LOAN_HOST: loan
networks:
- bankapp-network
accounts:
build:
context: .
dockerfile: accounts/Dockerfile
container_name: accounts
hostname: accounts
image: martian-bank-accounts
restart: always
networks:
- bankapp-network
loan:
build:
context: .
dockerfile: loan/Dockerfile
container_name: loan
hostname: loan
image: martian-bank-loan
restart: always
networks:
- bankapp-network
transactions:
build:
context: .
dockerfile: transactions/Dockerfile
container_name: transactions
hostname: martian-bank-transactions
image: martian-bank-transactions
restart: always
networks:
- bankapp-network
locust:
build:
context: ./performance_locust
container_name: locust
hostname: locust
ports:
- "8089:8089"
image: martian-bank-locust
restart: always
networks:
- bankapp-network
networks:
bankapp-network:
driver: bridge