-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yml
More file actions
39 lines (36 loc) · 878 Bytes
/
Copy pathcompose.yml
File metadata and controls
39 lines (36 loc) · 878 Bytes
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
version: '3.8'
services:
web-api:
container_name: web-api
build:
context: ./
environment:
- ASPNETCORE_ENVIRONMENT=Production
- MSSQL_HOSTNAME=sqlserver
- MSSQL_PORT=1433
- MSSQL_DBNAME=MainDemo
- MSSQL_USERNAME=sa
- MSSQL_PASSWORD=Password1*
ports:
- "8080:8080"
depends_on:
- sqlserver
sqlserver:
container_name: sqlserver
image: mcr.microsoft.com/mssql/server:2022-latest
platform: linux/amd64
environment:
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=Password1*
ports:
- "1433:1433"
volumes:
- mssql-data:/var/opt/mssql
healthcheck:
test: ["CMD-SHELL", "/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P Password1* -Q 'SELECT 1' || exit 1"]
interval: 10s
retries: 10
start_period: 10s
timeout: 3s
volumes:
mssql-data: