-
Notifications
You must be signed in to change notification settings - Fork 306
Expand file tree
/
Copy pathdocker-compose-db.yml
More file actions
53 lines (51 loc) · 2.08 KB
/
docker-compose-db.yml
File metadata and controls
53 lines (51 loc) · 2.08 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
44
45
46
47
48
49
50
51
52
53
version: '3.8'
services:
mssql:
image: mcr.microsoft.com/mssql/server:2019-latest
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=${SA_PASSWORD} # 请在 .env 中配置你的 SA 密码
ports:
- "1433:1433"
volumes:
- mssql_data:/var/opt/mssql
healthcheck:
test: ["CMD-SHELL", "/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P ${SA_PASSWORD} -Q \"SELECT 1\""]
interval: 10s
timeout: 10s
retries: 3
blazorserverapp:
image: blazordevlab/cleanarchitectureblazorserver:1.1.100
environment:
- UseInMemoryDatabase=${USE_IN_MEMORY_DATABASE}
- ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT}
- ASPNETCORE_URLS=${ASPNETCORE_URLS}
- ASPNETCORE_HTTP_PORTS=${ASPNETCORE_HTTP_PORTS}
- ASPNETCORE_HTTPS_PORTS=${ASPNETCORE_HTTPS_PORTS}
- AppConfigurationSettings__ApplicationUrl=${APP_URL}
- AppConfigurationSettings__Version=${APP_VERSION}
- DatabaseSettings__DBProvider=mssql
- DatabaseSettings__ConnectionString=Server=mssql;Database=BlazorDashboardDb;User Id=sa;Password=${SA_PASSWORD};MultipleActiveResultSets=true;Encrypt=false;TrustServerCertificate=false
- SmtpClientOptions__User=${SMTP_USER}
- SmtpClientOptions__Port=${SMTP_PORT}
- SmtpClientOptions__Server=${SMTP_SERVER}
- SmtpClientOptions__Password=${SMTP_PASSWORD}
- SmtpClientOptions__DefaultFromEmail=${SMTP_DEFAULT_FROM}
- Authentication__Microsoft__ClientId=${MS_CLIENT_ID}
- Authentication__Microsoft__ClientSecret=${MS_CLIENT_SECRET}
- Authentication__Google__ClientId=${GOOGLE_CLIENT_ID}
- Authentication__Google__ClientSecret=${GOOGLE_CLIENT_SECRET}
- Authentication__Facebook__AppId=${FB_APP_ID}
- Authentication__Facebook__AppSecret=${FB_APP_SECRET}
- Minio__Endpoint=${MINIO_ENDPOINT}
- Minio__AccessKey=${MINIO_ACCESS_KEY}
- Minio__SecretKey=${MINIO_SECRET_KEY}
- Minio__BucketName=${MINIO_BUCKET}
ports:
- "8014:80"
- "8015:443"
depends_on:
mssql:
condition: service_healthy
volumes:
mssql_data: