-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
156 lines (144 loc) · 2.89 KB
/
docker-compose.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
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
version: "3"
services:
setup:
container_name: setup
build:
context: ./setup
ports:
- "8080:8080"
environment:
PORT: 8080
GIN_MODE: release
networks:
- nt-network
authentication:
container_name: authentication
build:
context: ./authentication
ports:
- "8888:8888"
environment:
PORT: 8888
GIN_MODE: release
networks:
- nt-network
transaction:
container_name: transaction
build:
context: ./transaction
ports:
- "5433:5433"
environment:
PORT: 5433
GIN_MODE: release
networks:
- nt-network
engine:
container_name: engine
build:
context: ./engine
ports:
- "8585:8585"
environment:
PORT: 8585
GIN_MODE: release
depends_on:
- mongo
networks:
- nt-network
frontend:
container_name: frontend
build:
context: ./client/app
ports:
- "3000:3000"
networks:
- nt-network
user_database:
container_name: user_database
image: postgres:16-bullseye
restart: always
environment:
POSTGRES_PASSWORD: db123
POSTGRES_USER: nt_user
POSTGRES_DB: nt_db
ports:
- 5432:5432
volumes:
- ./user_init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- nt-network
stock_database:
container_name: stock_database
image: postgres:16-bullseye
restart: always
environment:
POSTGRES_PASSWORD: db123
POSTGRES_USER: nt_user
POSTGRES_DB: nt_db
ports:
- 5431:5431
volumes:
- ./stock_init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- nt-network
tx_database:
container_name: tx_database
image: postgres:16-bullseye
restart: always
environment:
POSTGRES_PASSWORD: db123
POSTGRES_USER: nt_user
POSTGRES_DB: nt_db
ports:
- 5430:5430
volumes:
- ./tx_init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- nt-network
mongo:
container_name: mongo
image: mongo:latest
ports:
- "27017:27017"
networks:
- nt-network
proxy:
image: nginx:latest
container_name: proxy
ports:
- 80:80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
- frontend
- setup
- authentication
- transaction
- engine
- user_database
- stock_database
- tx_database
- mongo
networks:
- nt-network
jmeter:
profiles:
- ci
image: justb4/jmeter:latest
container_name: jmeter
platform: linux/amd64
volumes:
- ./tests:/tests
depends_on:
- setup
- authentication
- transaction
- engine
- user_database
- stock_database
- tx_database
command: -n -t /tests/Seng468_Report1_No_Delay.jmx -l /tests/results.jtl
network_mode: host
networks:
nt-network: