This repository was archived by the owner on Oct 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (41 loc) · 1.32 KB
/
docker-compose.yml
File metadata and controls
44 lines (41 loc) · 1.32 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
version: '3.4'
name: aspnet-core-webapi
services:
webapi:
container_name: webapi
image: ${DOCKER_REGISTRY-}webapi
build:
context: .
dockerfile: Source/WebApi/Dockerfile
env_file:
- .env
environment:
- DOTNET_USE_POLLING_FILE_WATCHER=1
- ENABLE_CORS=true
- NUGET_PACKAGES=/root/.nuget/fallbackpackages
- NUGET_FALLBACK_PACKAGES=/root/.nuget/fallbackpackages
volumes:
- ${USERPROFILE}\vsdbg\vs2017u5:/remote_debugger:rw
- C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Sdks\Microsoft.Docker.Sdk\tools\TokenService.Proxy\linux-x64\net6.0:/TokenService.Proxy:ro
- ${USERPROFILE}\.nuget\packages\:/root/.nuget/fallbackpackages
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:51199"]
interval: 30s
timeout: 10s
retries: 5
depends_on:
- mssql
mssql:
container_name: mssql
image: mcr.microsoft.com/mssql/server:2022-latest
env_file:
- .env
environment:
- "ACCEPT_EULA=Y"
- "SA_PASSWORD=${MSSQL_SA_PASSWORD}"
- attach_dbs=[{"dbName":"${MSSQL_DB_NAME}","dbFiles":["${MSSQL_DATA_PATH}\\${MSSQL_DB_NAME}.mdf","${MSSQL_DATA_PATH}\\${MSSQL_DB_NAME}.ldf"]}]
volumes:
- sqlvolume:/var/opt/mssql
volumes:
sqlvolume:
external: false