-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
167 lines (155 loc) · 4.22 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
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
version: '3.4'
services:
personalassistant-web:
image: ${DOCKER_REGISTRY}:personalassistant-web-latest
container_name: pa-web
restart: always
environment:
- ASPNETCORE_URLS=http://0.0.0.0:80
- RabbitMQ__EventBusConnection=${EVENT_BUS_HOST}
- RabbitMQ__EventBusUserName=${EVENT_BUS_USERNAME}
- RabbitMQ__EventBusPassword=${EVENT_BUS_PASSWORD}
- KeyVault__ClientSecret=${KEY_VAULT_SECRET}
- PORT=80
ports:
- "5000:80"
volumes:
- ./storage:/app/storage
depends_on:
- postgres
- rabbitmq
gateway:
image: ${DOCKER_REGISTRY}:gateway-latest
container_name: pa-gateway
restart: always
environment:
- ASPNETCORE_URLS=http://0.0.0.0:80
- PORT=80
ports:
- "5003:80"
volumes:
- ./storage:/app/storage
depends_on:
- core-api
- todo-api
- chef-api
- accountant-api
- weatherman-api
- trainer-api
core-api:
image: ${DOCKER_REGISTRY}:core-api-latest
container_name: pa-core-api
restart: always
environment:
- ASPNETCORE_URLS=http://0.0.0.0:80
- KeyVault__ClientSecret=${KEY_VAULT_SECRET}
- PORT=80
volumes:
- ./storage:/app/storage
depends_on:
- postgres
todo-api:
image: ${DOCKER_REGISTRY}:todo-api-latest
container_name: pa-todo-api
restart: always
environment:
- ASPNETCORE_URLS=http://0.0.0.0:80
- RabbitMQ__EventBusConnection=${EVENT_BUS_HOST}
- RabbitMQ__EventBusUserName=${EVENT_BUS_USERNAME}
- RabbitMQ__EventBusPassword=${EVENT_BUS_PASSWORD}
- KeyVault__ClientSecret=${KEY_VAULT_SECRET}
- PORT=80
volumes:
- ./storage:/app/storage
depends_on:
- postgres
- rabbitmq
chef-api:
image: ${DOCKER_REGISTRY}:chef-api-latest
container_name: pa-chef-api
restart: always
environment:
- ASPNETCORE_URLS=http://0.0.0.0:80
- RabbitMQ__EventBusConnection=${EVENT_BUS_HOST}
- RabbitMQ__EventBusUserName=${EVENT_BUS_USERNAME}
- RabbitMQ__EventBusPassword=${EVENT_BUS_PASSWORD}
- KeyVault__ClientSecret=${KEY_VAULT_SECRET}
- PORT=80
volumes:
- ./storage:/app/storage
depends_on:
- postgres
- rabbitmq
accountant-api:
image: ${DOCKER_REGISTRY}:accountant-api-latest
container_name: pa-accountant-api
restart: always
environment:
- ASPNETCORE_URLS=http://0.0.0.0:80
- KeyVault__ClientSecret=${KEY_VAULT_SECRET}
- PORT=80
volumes:
- ./storage:/app/storage
depends_on:
- postgres
weatherman-api:
image: ${DOCKER_REGISTRY}:weatherman-api-latest
container_name: pa-weatherman-api
restart: always
environment:
- ASPNETCORE_URLS=http://0.0.0.0:80
- KeyVault__ClientSecret=${KEY_VAULT_SECRET}
- PORT=80
volumes:
- ./storage:/app/storage
depends_on:
- postgres
trainer-api:
image: ${DOCKER_REGISTRY}:trainer-api-latest
container_name: pa-trainer-api
restart: always
environment:
- ASPNETCORE_URLS=http://0.0.0.0:80
- KeyVault__ClientSecret=${KEY_VAULT_SECRET}
- PORT=80
volumes:
- ./storage:/app/storage
depends_on:
- postgres
sender:
image: ${DOCKER_REGISTRY}:sender-latest
container_name: pa-sender
restart: always
environment:
- RabbitMQ__EventBusConnection=${EVENT_BUS_HOST}
- RabbitMQ__EventBusUserName=${EVENT_BUS_USERNAME}
- RabbitMQ__EventBusPassword=${EVENT_BUS_PASSWORD}
- KeyVault__ClientSecret=${KEY_VAULT_SECRET}
volumes:
- ./storage:/app/storage
depends_on:
- postgres
- rabbitmq
postgres:
image: postgres:16
container_name: pa-postgres
restart: always
ports:
- '5445:5432'
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- postgres-data:/var/lib/postgresql/data
rabbitmq:
image: rabbitmq:4.0-management-alpine
container_name: pa-rabbitmq
restart: always
environment:
RABBITMQ_ERLANG_COOKIE: ${RABBITMQ_ERLANG_COOKIE}
RABBITMQ_DEFAULT_USER: ${EVENT_BUS_USERNAME}
RABBITMQ_DEFAULT_PASS: ${EVENT_BUS_PASSWORD}
ports:
- "15672:15672"
volumes:
postgres-data: