generated from bmstu-rsoi/lab4-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (57 loc) · 1.06 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
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
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432"
gateway:
image: gateway
restart: on-failure
build: v2/gateway
ports:
- "8080:8080"
depends_on:
- loyalty
- payment
- reservation
loyalty:
image: loyalty
restart: on-failure
build: v2/loyalty
ports:
- "8050:8050"
depends_on:
- postgres
links:
- postgres
payment:
image: payment
restart: on-failure
build: v2/payment
ports:
- "8060:8060"
depends_on:
- postgres
links:
- postgres
reservation:
image: reservation
restart: on-failure
build: v2/reservation
ports:
- "8070:8070"
depends_on:
- postgres
links:
- postgres
volumes:
db-data: