1
Fork 0
satellite/hosts/nixos/lapetus/services/5d-diplomacy/default.nix

21 lines
612 B
Nix
Raw Normal View History

2024-10-11 14:12:05 +02:00
{ config, ... }:
{
imports = [ ./generated.nix ];
satellite.cloudflared.at.dip.port = config.satellite.ports."5d-diplomacy";
2024-10-11 14:12:05 +02:00
virtualisation.oci-containers.containers."5d-diplomacy-frontend".ports = [
"${toString config.satellite.ports."5d-diplomacy"}:8080"
];
virtualisation.oci-containers.containers."5d-diplomacy-mssql".volumes =
let
dataDir = "/persist/state/var/lib/5d-diplomacy";
in
[
"${dataDir}/mssql-data/data:/var/opt/mssql/data:rw"
"${dataDir}/mssql-data/log:/var/opt/mssql/log:rw"
"${dataDir}/mssql-data/secrets:/var/opt/mssql/secrets:rw"
];
2024-10-11 14:12:05 +02:00
}