-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 1.14 KB
/
Copy pathdocker-compose.yml
File metadata and controls
43 lines (40 loc) · 1.14 KB
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
services:
sqlserver:
container_name: mailcore-sqlserver
build: docker/sqlserver-fts
environment:
ACCEPT_EULA: "Y"
MSSQL_SA_PASSWORD: "MailCore_Dev123!"
ports:
- "1433:1433"
volumes:
- sqlserver_data:/var/opt/mssql
healthcheck:
test: /opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P "MailCore_Dev123!" -C -Q "SELECT 1" || exit 1
interval: 10s
timeout: 5s
retries: 10
mailhog:
container_name: mailcore-mailhog
image: mailhog/mailhog
ports:
- "1025:1025"
- "8025:8025"
api:
container_name: mailcore-api
build: .
ports:
- "5237:8080"
depends_on:
sqlserver:
condition: service_healthy
environment:
ASPNETCORE_ENVIRONMENT: "Development"
ASPNETCORE_URLS: "http://+:8080"
ConnectionStrings__DefaultConnection: "Server=sqlserver;Database=MailService;User=sa;Password=MailCore_Dev123!;TrustServerCertificate=true;MultipleActiveResultSets=true"
FileStorage__RelativePath: "/app/App_Data/Attachments"
Smtp__Host: "mailhog"
Smtp__Port: "1025"
SeedOnStartup: "true"
volumes:
sqlserver_data: