-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (49 loc) · 1.42 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
version: '3.4'
services:
final:
container_name: app
image: app
build:
context: .
dockerfile: Dockerfile
target: final
ports:
- "8001:433"
- "8000:80"
depends_on:
- migrations
- sqlserver
environment:
- ASPNETCORE_URLS=https://+:433
- ASPNETCORE_HTTPS_PORT=433
- ASPNETCORE_Kestrel__Certificates__Default__Password=hyejin
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx
- Logging__Loglevel__Default=Debug
- Logging__Loglevel__Microsoft.AspNetCore=Debug
migrations:
container_name: service_migrations
image: service_migrations
build:
context: .
dockerfile: Dockerfile
target: migrations
depends_on:
- sqlserver
sqlserver:
container_name: sqlserver
image: mcr.microsoft.com/mssql/server:2022-latest
user: root
environment:
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=HyejinKim<3
- MSQL_PID=Express
ports:
- "1433:1433"
volumes:
- sql_server_data:/var/opt/mssql/data
- sql_server_log:/var/opt/mssql/log
- sql_server_secrets:/var/opt/mssql/secrets
volumes:
sql_server_data:
sql_server_log:
sql_server_secrets: