This repository was archived by the owner on Jun 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
180 lines (168 loc) · 4.01 KB
/
docker-compose.prod.yml
File metadata and controls
180 lines (168 loc) · 4.01 KB
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
version: '3.9'
name: 'bhotel_employee'
services:
gateway:
build:
context: gateway
dockerfile: Dockerfile
ports:
- 9090:9090
restart: always
volumes:
- './gateway/nginx/nginx.conf:/etc/nginx/nginx.conf:ro'
depends_on:
- app-admin
- chatix
- console-backend
- app-console
networks:
network:
ipv4_address: 24.16.1.22
postgres-hotel:
image: postgres:latest
ports:
- 5439:5432
restart: unless-stopped
volumes:
- postgres-data-hotel:/var/lib/postgresql/data/
- './postgres/data-set/hotel:/docker-entrypoint-initdb.d'
environment:
- POSTGRES_DB=booking_hotel
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=fuckin_password
- MAX_LOGIN_ATTEMPTS=0
networks:
network:
ipv4_address: 24.16.1.4
postgres-client:
image: postgres:latest
ports:
- 5440:5432
restart: unless-stopped
volumes:
- postgres-data-client:/var/lib/postgresql/data/
- './postgres/data-set/client:/docker-entrypoint-initdb.d'
environment:
- POSTGRES_DB=booking_client
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=fuckin_password
- MAX_LOGIN_ATTEMPTS=0
networks:
network:
ipv4_address: 24.16.1.5
app-admin:
build:
context: hotel-booking-client-employee
dockerfile: Dockerfile
ports:
- 8000:7699
restart: always
environment:
- VITE_API_URL=http://87.242.117.193:9090/api
depends_on:
- backend-admin
networks:
network:
ipv4_address: 24.16.1.64
backend-admin:
build:
context: hotel-booking-server
dockerfile: Dockerfile
ports:
- 8801:5001
restart: always
environment:
- NODE_ENV=production
- CLIENT_URL=*
- POSTGRES_HOST=postgres-hotel
- POSTGRES_PORT=5432
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=fuckin_password
- POSTGRES_DB=booking_hotel
depends_on:
- postgres-hotel
networks:
network:
ipv4_address: 24.16.1.54
console-backend:
build:
context: ./
dockerfile: backend.Dockerfile
ports:
- 5001:8556
restart: always
environment:
- NODE_ENV=production
depends_on:
- postgres-client
- backend-admin
networks:
network:
ipv4_address: 24.16.1.55
app-console:
build:
context: ./
dockerfile: console.Dockerfile
ports:
- 5501:5501
restart: always
environment:
- VITE_APP_ADMIN_API=http://87.242.117.193:9090/api
- VITE_APP_TRPC_API=http://87.242.117.193:9090/api
depends_on:
- backend-admin
networks:
network:
ipv4_address: 24.16.2.77
app-client:
build:
context: ./
dockerfile: frontend.Dockerfile
ports:
- 5502:5502
restart: always
environment:
- VITE_APP_ADMIN_API=http://87.242.117.193:9090/api
- VITE_APP_TRPC_API=http://87.242.117.193:9090/api
depends_on:
- backend-admin
networks:
network:
ipv4_address: 24.16.2.90
chatix:
build:
context: ./chat-engine
dockerfile: Dockerfile
ports:
- 7777:7777
restart: always
depends_on:
- postgres-client
environment:
- PORT=7777
- NODE_ENV=production
- SKT_PG_PORT=5440
- SKT_PG_ADDRESS=87.242.117.193
- SKT_PG_USER=postgres
- SKT_PG_PASSWORD=fuckin_password
- SKT_PG_DATABASE=booking_messages
networks:
network:
ipv4_address: 24.16.2.34
room-images:
build: ./bhotel_visiter_json_server
ports:
- 7887:7887
networks:
network:
ipv4_address: 24.16.2.91
volumes:
postgres-data-hotel:
postgres-data-client:
networks:
network:
driver: bridge
ipam:
config:
- subnet: 24.16.0.0/16
gateway: 24.16.0.1