-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
115 lines (107 loc) · 4.84 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
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
version: '3.4'
services:
web:
#image: ems-web
image: ${DOCKER_REGISTRY:-mahmudkoli}/ems-web:${PLATFORM:-linux}-${TAG:-latest}
#image: ${DOCKER_REGISTRY-}ems-web
build:
context: .
dockerfile: EmailMarketing.Web/Dockerfile
#network: host
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ConnectionStrings__DefaultConnection=Server=${DB_SERVER};Database=${DB_NAME};User Id=${DB_USER_ID};Password=${DB_PASSWORD};MultipleActiveResultSets=true;
- AppSettings__ContactImportFileUrl=${ROOT_URL}/${CONTACT_IMPORT_FILE_URL}
- AppSettings__ContactExportFileUrl=${ROOT_URL}/${CONTACT_EXPORT_FILE_URL}
- AppSettings__EmailSenderFileUrl=${ROOT_URL}/${EMAIL_SENDER_FILE_URL}
- AppSettings__CampaignExportFileUrl=${ROOT_URL}/${CAMPAIGN_EXPORT_FILE_URL}
ports:
- "8080:80"
- "44380:443"
#- "8080-8085:80"
#- "44380-44385:443"
#extra_hosts:
#- "WIN_MSSQL:192.168.0.1"
#depends_on:
#- db
volumes:
- data-volume:${VOLUME_CONTAINER_DIRECTORY}
# - C:\\MailToEMS\Web:/app/wwwroot
#db:
#image: "mcr.microsoft.com/mssql/server"
#environment:
#SA_PASSWORD: "P@ssword"
#ACCEPT_EULA: "Y"
#ports:
#- "1433:1433"
contact-import-worker:
#image: ems-contact-import-worker
image: ${DOCKER_REGISTRY:-mahmudkoli}/ems-contact-import-worker:${PLATFORM:-linux}-${TAG:-latest}
#image: ${DOCKER_REGISTRY-}ems-contact-import-worker
build:
context: .
dockerfile: EmailMarketing.ExcelWorkerService/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ConnectionStrings__DefaultConnection=Server=${DB_SERVER};Database=${DB_NAME};User Id=${DB_USER_ID};Password=${DB_PASSWORD};MultipleActiveResultSets=true;
- WorkerSettings__ContactImportFileUrl=${ROOT_URL}/${CONTACT_IMPORT_FILE_URL}
- WorkerSettings__ContactImportLogUrl=${ROOT_URL}/${CONTACT_IMPORT_LOG_URL}
#depends_on:
#- db
volumes:
- data-volume:${VOLUME_CONTAINER_DIRECTORY}
# - C:\\MailToEMS\ContactImport:/app/wwwroot
email-sender-worker:
#image: ems-email-sender-worker
image: ${DOCKER_REGISTRY:-mahmudkoli}/ems-email-sender-worker:${PLATFORM:-linux}-${TAG:-latest}
build:
context: .
dockerfile: EmailMarketing.EmailSendingWorkerService/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ConnectionStrings__DefaultConnection=Server=${DB_SERVER};Database=${DB_NAME};User Id=${DB_USER_ID};Password=${DB_PASSWORD};MultipleActiveResultSets=true;
- WorkerSettings__EmailSenderFileUrl=${ROOT_URL}/${EMAIL_SENDER_FILE_URL}
- WorkerSettings__EmailSenderLogUrl=${ROOT_URL}/${EMAIL_SENDER_LOG_URL}
#depends_on:
#- db
volumes:
- data-volume:${VOLUME_CONTAINER_DIRECTORY}
contact-export-worker:
#image: ems-contact-export-worker
image: ${DOCKER_REGISTRY:-mahmudkoli}/ems-contact-export-worker:${PLATFORM:-linux}-${TAG:-latest}
build:
context: .
dockerfile: EmailMarketing.ExcelExportWorkerService/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ConnectionStrings__DefaultConnection=Server=${DB_SERVER};Database=${DB_NAME};User Id=${DB_USER_ID};Password=${DB_PASSWORD};MultipleActiveResultSets=true;
- WorkerSettings__ContactExportFileUrl=${ROOT_URL}/${CONTACT_EXPORT_FILE_URL}
- WorkerSettings__ContactExportLogUrl=${ROOT_URL}/${CONTACT_EXPORT_LOG_URL}
#depends_on:
#- db
volumes:
- data-volume:${VOLUME_CONTAINER_DIRECTORY}
campaign-export-worker:
#image: ems-campaign-export-worker
image: ${DOCKER_REGISTRY:-mahmudkoli}/ems-campaign-export-worker:${PLATFORM:-linux}-${TAG:-latest}
build:
context: .
dockerfile: EmailMarketing.CampaingReportExcelExportService/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ConnectionStrings__DefaultConnection=Server=${DB_SERVER};Database=${DB_NAME};User Id=${DB_USER_ID};Password=${DB_PASSWORD};MultipleActiveResultSets=true;
- WorkerSettings__CampaignExportFileUrl=${ROOT_URL}/${CAMPAIGN_EXPORT_FILE_URL}
- WorkerSettings__CampaignExportLogUrl=${ROOT_URL}/${CAMPAIGN_EXPORT_LOG_URL}
#depends_on:
#- db
volumes:
- data-volume:${VOLUME_CONTAINER_DIRECTORY}
volumes:
data-volume:
external: false
name: ${VOLUME_NAME}
driver: local
driver_opts:
o: bind
type: none
device: ${VOLUME_HOST_DIRECTORY}