-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
70 lines (65 loc) · 1.75 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
version: '3.4'
volumes:
db-data:
services:
sql-server-db:
container_name: sql-server-db
image: mcr.microsoft.com/mssql/server:2017-latest
volumes:
- db-data:/var/opt/mssql/data
environment:
ACCEPT_EULA: "Y"
SA_PASSWORD: "Pa55w0rd2019"
MSSQL_PID: Express
ports:
- "1433:1433"
smtp-server:
container_name: smtp-server
image: mailhog/mailhog:latest
restart: always
logging:
driver: 'none' # disable saving logs
ports:
- "1025:1025" # SMTP
- "8025:8025" # Web UI
azurite:
container_name: blob-storage
image: mcr.microsoft.com/azure-storage/azurite
hostname: azurite
command: "azurite-blob --loose --blobHost 0.0.0.0"
ports:
- "10000:10000"
volumes:
- ./test/azurite:/data
admin:
container_name: admin
depends_on:
- sql-server-db
- smtp-server
- azurite
build:
context: .
dockerfile: Scr/Admin/Dockerfile
ports:
- "8080:80"
environment:
- ASPNETCORE_ENVIRONMENT=Developement
- MailHostUrl=smtp-server
- MailPort=1025
- DatabaseConnections__EmailDb=Server=sql-server-db,1433;Initial Catalog=EmailTestData;User ID =SA;Password=Pa55w0rd2019;TrustServerCertificate=true;
api:
container_name: api
depends_on:
- sql-server-db
- smtp-server
- azurite
build:
context: .
dockerfile: Scr/Api/Dockerfile
ports:
- "8010:80"
environment:
- ASPNETCORE_ENVIRONMENT=Developement
- MailHostUrl=smtp-server
- MailPort=1025
- DatabaseConnections__EmailDb=Server=sql-server-db,1433;Initial Catalog=EmailTestData;User ID =SA;Password=Pa55w0rd2019;TrustServerCertificate=true;