-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (28 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
31 lines (28 loc) · 1.06 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
# Docker compose file used for local development
services:
# Microsoft SQL database used for testing
mssql:
image: mcr.microsoft.com/mssql/server:2025-latest
ports:
- 1433:1433
environment:
- MSSQL_SA_PASSWORD=My@Test@Password1
command: ["/opt/mssql/bin/sqlservr", "--accept-eula", "--reset-sa-password"]
# Only started when the `devcontainer` profile is active. The dev container
# client brings this service up by name, which auto-activates the profile;
# plain `docker compose up` from the host leaves it untouched.
dev:
profiles: [devcontainer]
build:
context: .devcontainer
dockerfile: Dockerfile
volumes:
- .:/workspace
# Share the host's network namespace so localhost:1433 reaches the mssql
# service through its published port — same connection string as on the
# host, no env-var juggling.
network_mode: host
# Bringing up `dev` also brings up the test database, so opening the dev
# container leaves you with a complete environment in one step.
depends_on:
- mssql