-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (52 loc) · 1.04 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
version: '3'
networks:
db:
workers:
services:
dbMailServer:
image: "mcr.microsoft.com/mssql/server:2019-latest"
environment:
SA_PASSWORD: P@ssword42
ACCEPT_EULA: "Y"
ports:
- 1433:1433
networks:
- db
# mem_limit: 1G
rabbitmq:
image: rabbitmq:3-management
hostname: "rabbitmq"
ports:
- 15672:15672
- 5672:5672
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "5672" ]
interval: 5s
timeout: 15s
retries: 5
networks:
- workers
# mem_limit: 250M
api:
image: sendmai.api.11
build: backend/MailSender.Api
volumes:
- ./settings/appsettings.json:/app/appsettings.json
ports:
- 8080:80
depends_on:
- dbMailServer
- rabbitmq
networks:
- db
- workers
worker:
image: sendmail.worker.11
volumes:
- ./settings/appsettings.json:/app/appsettings.json
build: worker/MailSender.Worker
restart: on-failure
depends_on:
- rabbitmq
networks:
- workers