Host mssql on server
This commit is contained in:
parent
2750e7a65b
commit
5c3c72f39c
|
@ -108,7 +108,7 @@
|
|||
# Enable networking
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
networking.firewall.allowedTCPPorts = [80 443];
|
||||
networking.firewall.allowedTCPPorts = [80 443 1443];
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "Europe/Amsterdam";
|
||||
|
@ -152,6 +152,18 @@
|
|||
nextcloud.extraGroups = [config.users.groups.keys.name "aria2" "onlyoffice"];
|
||||
};
|
||||
|
||||
virtualisation.oci-containers.containers = {
|
||||
mssql = {
|
||||
image = "mcr.microsoft.com/mssql/server:2022-latest";
|
||||
ports = ["1433:1433"];
|
||||
environment = {
|
||||
"ACCEPT_EULA" = "Y";
|
||||
"MSSQL_SA_PASSWORD" = "EbKihNUHg6S$V$qchADFmw!JCm##toc3";
|
||||
};
|
||||
volumes = ["/home/lillian/docker/mssql:/data"];
|
||||
};
|
||||
};
|
||||
|
||||
# Enable completion of system packages by zsh
|
||||
environment.pathsToLink = ["/share/zsh"];
|
||||
|
||||
|
|
Loading…
Reference in a new issue