-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
129 lines (120 loc) · 2.98 KB
/
docker-compose.yml
File metadata and controls
129 lines (120 loc) · 2.98 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
services:
users_db:
image: postgres:17-alpine
container_name: users_db
restart: always
ports:
- 9432:5432
environment:
POSTGRES_PASSWORD: postgres
volumes:
- users_storage:/var/lib/postgresql/data
- ./user-service/initial.sql:/docker-entrypoint-initdb.d/initial.sql
networks:
- booking-network
property_db:
image: postgis/postgis:17-3.4-alpine
container_name: property_db
restart: always
ports:
- 9433:5432
environment:
POSTGRES_PASSWORD: postgres
volumes:
- property_storage:/var/lib/postgresql/data
- ./property-service/initial.sql:/docker-entrypoint-initdb.d/initial.sql
networks:
- booking-network
booking_db:
image: postgres:17-alpine
container_name: booking_db
restart: always
ports:
- 9434:5432
environment:
POSTGRES_PASSWORD: postgres
volumes:
- booking_storage:/var/lib/postgresql/data
- ./booking-service/initial.sql:/docker-entrypoint-initdb.d/initial.sql
networks:
- booking-network
user_service:
container_name: user_service
build:
context: ./user-service
dockerfile: ./Dockerfile
ports:
- 9001:9001
depends_on:
- users_db
volumes:
- ./user-service/src:/app/src
- ./user-service/tsconfig.json:/app/tsconfig.json
- ./user-service/.env-dev:/app/.env
networks:
- booking-network
property_service:
container_name: property_service
build:
context: ./property-service
dockerfile: ./Dockerfile
ports:
- 9002:9002
depends_on:
- property_db
volumes:
- ./property-service/src:/app/src
- ./property-service/tsconfig.json:/app/tsconfig.json
- ./property-service/.env-dev:/app/.env
networks:
- booking-network
location_service:
container_name: location_service
build:
context: ./location-service
dockerfile: ./Dockerfile
ports:
- 9004:9004
volumes:
- ./location-service/src:/app/src
- ./location-service/tsconfig.json:/app/tsconfig.json
- ./location-service/.env:/app/.env
networks:
- booking-network
booking_service:
container_name: booking_service
build:
context: ./booking-service
dockerfile: ./Dockerfile
ports:
- 9003:9003
depends_on:
- booking_db
volumes:
- ./booking-service/src:/app/src
- ./booking-service/tsconfig.json:/app/tsconfig.json
- ./booking-service/.env-dev:/app/.env
networks:
- booking-network
api_gateway:
container_name: nginx_api_gateway
build:
context: ./nginx
dockerfile: ./Dockerfile
ports:
- 9000:80
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
networks:
- booking-network
depends_on:
- user_service
- property_service
- booking_service
- location_service
volumes:
users_storage:
property_storage:
booking_storage:
networks:
booking-network: