-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-prod.yml
81 lines (75 loc) · 1.93 KB
/
docker-compose-prod.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
version: '3.9'
services:
postgres:
image: postgres:15-alpine
restart: always
environment:
POSTGRES_PASSWORD: PZLqwVFf8YkwqRhq?PZLqwVFf8Y_prod
POSTGRES_USER: phonedirectory_usr
POSTGRES_DB: phonedirectory_db
networks:
- prod
adminer:
image: adminer
restart: always
depends_on:
- postgres
networks:
- prod
ports:
- 127.0.0.1:8282:8080
rabbitmq:
image: rabbitmq:3-management-alpine
restart: always
networks:
- prod
ports:
- 127.0.0.1:15672:15672
contact-api:
build:
dockerfile: dockerfile-contact-api
restart: always
depends_on:
- postgres
- report-api
environment:
ASPNETCORE_ENVIRONMENT: Prod
networks:
- prod
ports:
- 127.0.0.1:8080:80
report-api:
build:
dockerfile: dockerfile-report-api
restart: always
depends_on:
- postgres
- rabbitmq
environment:
ASPNETCORE_ENVIRONMENT: Prod
networks:
- prod
volumes:
- /reports:/reports
ports:
- 127.0.0.1:8081:80
report-consumer:
build:
dockerfile: dockerfile-report-consumer
restart: always
depends_on:
- report-api
- contact-api
- rabbitmq
environment:
ASPNETCORE_ENVIRONMENT: Prod
CONTACT_SERVICE_BASE_URL: http://contact-api
REPORT_SERVICE_BASE_URL: http://report-api
REPORT_DIRECTORY: /reports
RABBITMQ_CONNECTION: host=rabbitmq
networks:
- prod
volumes:
- /reports:/reports
networks:
prod: