-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
39 lines (37 loc) · 922 Bytes
/
compose.dev.yaml
File metadata and controls
39 lines (37 loc) · 922 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
services:
# SQL Server Database
sqlserver:
image: mcr.microsoft.com/mssql/server:2022-latest
container_name: coursetracker-sqlserver-dev
hostname: sqlserver
environment:
ACCEPT_EULA: Y
SA_PASSWORD: CourseTracker123!
MSSQL_PID: Express
ports:
- "1433:1433"
volumes:
- sqlserver_data_dev:/var/opt/mssql
- ./scripts/init-db.sql:/docker-entrypoint-initdb.d/init-db.sql:ro
networks:
- coursetracker-network
healthcheck:
test:
[
"CMD-SHELL",
"/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P CourseTracker123! -Q 'SELECT 1' || exit 1",
]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
restart: unless-stopped
volumes:
sqlserver_data_dev:
driver: local
networks:
coursetracker-network:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16