-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (63 loc) · 1.5 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
version: "3"
services:
postgres:
image: library/postgres:13
container_name: postgres
restart: on-failure
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: "postgres"
POSTGRES_DB: postgres
volumes:
- db-data:/var/lib/postgresql/data
- ./postgres/:/docker-entrypoint-initdb.d/
ports:
- "5432:5432"
gateway_service:
build: services
container_name: gateway_service
restart: always
ports:
- "8080:80"
depends_on:
- library_system
- rating_system
- reservation_system
volumes:
- ./services/gateway_service:/var/www/html
- ./services/db_connect:/var/www/html/db_connect
reservation_system:
build: services
container_name: reservation_system
restart: always
ports:
- "8070:80"
depends_on:
- postgres
volumes:
- ./services/reservation_system:/var/www/html
- ./services/db_connect:/var/www/html/db_connect
library_system:
build: services
container_name: library_system
restart: always
ports:
- "8060:80"
depends_on:
- postgres
volumes:
- ./services/library_system:/var/www/html
- ./services/db_connect:/var/www/html/db_connect
rating_system:
build: services
container_name: rating_system
restart: always
ports:
- "8050:80"
depends_on:
- postgres
volumes:
- ./services/rating_system:/var/www/html
- ./services/db_connect:/var/www/html/db_connect
volumes:
db-data: