Skip to content

Commit 306c3ff

Browse files
tanbroclaude
andcommitted
chore(docker): add MSSQL to test docker-compose and update password
- Add MSSQL service to tests/docker-compose.yml - Update MSSQL password in db.docker-compose.yml to use simpler password (YourStrongPassword123 instead of YourStrong@Passw0rd) to avoid URL encoding issues in connection strings Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a7665a1 commit 306c3ff

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

db.docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ services:
2525
ports:
2626
- "127.0.0.1:1433:1433"
2727
environment:
28-
MSSQL_SA_PASSWORD: "YourStrong@Passw0rd"
28+
MSSQL_SA_PASSWORD: "YourStrongPassword123"
2929
MSSQL_PID: "Developer"
3030
MSSQL_TCP_PORT: "1433"
3131
ACCEPT_EULA: "Y"

tests/docker-compose.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ x-common-environment: &common-environment
66
MYSQL_USER: test
77
MYSQL_PASSWORD: test
88
POSTGRES_PASSWORD: test
9+
MSSQL_SA_PASSWORD: "YourStrongPassword123"
910

1011
services:
1112
mysql:
@@ -26,14 +27,25 @@ services:
2627
healthcheck:
2728
test: ["CMD-SHELL", "pg_isready -U postgres -h 127.0.0.1"]
2829

30+
mssql:
31+
image: mcr.microsoft.com/mssql/server:2022-latest
32+
environment:
33+
<<: *common-environment
34+
MSSQL_PID: "Developer"
35+
MSSQL_TCP_PORT: "1433"
36+
ACCEPT_EULA: "Y"
37+
ports:
38+
- "1433:1433"
39+
# Note: MSSQL container requires at least 2GB RAM to run properly
40+
2941
python:
3042
build: .
3143
volumes:
3244
- type: bind
3345
source: ..
3446
target: /workspace
3547
working_dir: /workspace
36-
depends_on: [mysql, postgres]
48+
depends_on: [mysql, postgres, mssql]
3749
environment:
3850
<<: *common-environment
3951
env_file: .env

0 commit comments

Comments
 (0)