generated from bmstu-rsoi/lab2-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
89 lines (81 loc) · 1.79 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
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"
pgadmin:
image: dpage/pgadmin4
# environment:
# - PGADMIN_DEFAULT_EMAIL=
# - PGADMIN_DEFAULT_PASSWORD=
env_file:
- .env
ports:
- ${PGADMIN_OUT_PORT}:80
restart: always
volumes:
- pgadmin:/root/.pgadmin
reservation-service:
container_name: "reservation_service"
depends_on:
- "postgres"
build:
context: .
dockerfile: ./src/ReservationService/Dockerfile
restart: always
ports:
- ${RESERVATION_SERVICE_OUT_PORT}:80
env_file:
- .env
environment:
- ASPNETCORE_ENVIRONMENT=Development
loyalty-service:
container_name: "loyalty_service"
depends_on:
- "postgres"
build:
context: .
dockerfile: ./src/LoyaltyService/Dockerfile
restart: always
ports:
- ${LOYALTY_SERVICE_OUT_PORT}:80
env_file:
- .env
payment-service:
container_name: "payment_service"
depends_on:
- "postgres"
build:
context: .
dockerfile: ./src/PaymentService/Dockerfile
restart: always
ports:
- ${PAYMENT_SERVICE_OUT_PORT}:80
env_file:
- .env
gateway:
depends_on:
- "reservation-service"
build:
context: .
dockerfile: ./src/Gateway/Dockerfile
restart: always
ports:
- ${GATEWAY_OUT_PORT}:80
env_file:
- .env
environment:
- ASPNETCORE_ENVIRONMENT=Development
volumes:
db-data:
pgadmin: