Convert mssql from the module it replaces, not from a blank page

Read against hal/modules/mssql: the predecessor publishes 4848:1433 and its connections
block hands every consumer localhost:4848; its data has lived in /services/mssql/data
since it was installed — 4.6 GB of it. The nox module had 1433, db-data, and a pin three
builds behind, so taking it would have moved the port every consumer was told about,
started on an empty directory, and downgraded the engine at the same time.

db-data was not a convention: only this module and mongodb used it, and both predecessors
say data. Now nothing moves at the cutover.
This commit is contained in:
2026-09-23 20:22:34 +02:00
parent c001e054fd
commit cae0d00a7d
+6 -6
View File
@@ -20,10 +20,10 @@
], ],
"listens": [ "listens": [
{ {
"port": 1433, "port": 4848,
"protocol": "tcp", "protocol": "tcp",
"from": "mesh", "from": "mesh",
"why": "modules on any machine that were granted a database" "why": "modules on any machine that were granted a database. 4848, not 1433: the machine this replaces has served it there since it was installed, and every consumer was handed that number"
} }
], ],
"serves": { "serves": {
@@ -68,7 +68,7 @@
{ {
"id": "data", "id": "data",
"type": "directory", "type": "directory",
"path": "/services/mssql/db-data", "path": "/services/mssql/data",
"mode": "0700", "mode": "0700",
"owner": "10001:0" "owner": "10001:0"
}, },
@@ -81,16 +81,16 @@
"id": "server", "id": "server",
"type": "container", "type": "container",
"name": "mssql", "name": "mssql",
"image": "mcr.microsoft.com/mssql/server@sha256:ba4c8329f48fb8f02e1416be6a930ebfd71268caee78aa985f3af4315e457c89", "image": "mcr.microsoft.com/mssql/server@sha256:4402d880dd4c34bfa7d8705e56a86cd6c88da80a1f6bbbe741f999e76264a090",
"network": "mssql", "network": "mssql",
"env-file": [ "env-file": [
"/var/lib/mssql/sa.env" "/var/lib/mssql/sa.env"
], ],
"ports": [ "ports": [
"1433" "4848:1433"
], ],
"volumes": [ "volumes": [
"/services/mssql/db-data:/var/opt/mssql" "/services/mssql/data:/var/opt/mssql"
], ],
"secrets-in-environment": "the image documents only MSSQL_SA_PASSWORD, no _FILE and no configuration field; not convertible without a wrapper entrypoint" "secrets-in-environment": "the image documents only MSSQL_SA_PASSWORD, no _FILE and no configuration field; not convertible without a wrapper entrypoint"
}, },