-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (33 loc) · 928 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
36 lines (33 loc) · 928 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
version: '3.8'
services:
sqlserver:
image: mcr.microsoft.com/mssql/server:2022-latest
environment:
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=YourStrong!Passw0rd
- MSSQL_PID=Developer
ports:
- "1433:1433"
volumes:
- sqlserver-data:/var/opt/mssql
healthcheck:
test: /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P YourStrong!Passw0rd -Q 'SELECT 1' || exit 1
interval: 10s
timeout: 3s
retries: 10
start_period: 10s
sqlcmdr:
build:
context: .
dockerfile: SqlCmdr.Web/Dockerfile
ports:
- "8080:8080"
environment:
- ConnectionStrings__db=Server=sqlserver;Database=master;User Id=sa;Password=YourStrong!Passw0rd;TrustServerCertificate=true;Encrypt=true
- ASPNETCORE_URLS=http://+:8080
- SQLCMDR_FILE_LOG=0
depends_on:
sqlserver:
condition: service_healthy
volumes:
sqlserver-data: