-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (32 loc) · 935 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (32 loc) · 935 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
version: "3.8"
services:
sqlserver:
image: mcr.microsoft.com/mssql/server:2022-latest
container_name: SQLComposeContainerServer
environment:
ACCEPT_EULA: "Y"
MSSQL_SA_PASSWORD: "Test123!"
ports:
- "14330:1433"
healthcheck:
test: ["CMD", "/opt/mssql-tools18/bin/sqlcmd", "-S", "localhost", "-U", "sa", "-P", "Test123!", "-Q", "SELECT 1", "-C"]
interval: 10s
timeout: 5s
retries: 10
volumes:
- sql_data:/var/opt/mssql
web:
build:
context: .
dockerfile: ./Dockerfile
container_name: kiii-compose-container
ports:
- "8081:8080"
depends_on:
sqlserver:
condition: service_healthy
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ConnectionStrings__DefaultConnection=Server=sqlserver,1433;Database=isDb;User Id=sa;Password=Test123!;Encrypt=False;TrustServerCertificate=True;
volumes:
sql_data: