feat(teedy): configure container for teedy

This commit is contained in:
Khaïs COLIN 2024-08-25 12:32:47 +02:00
parent ddf0dc8d31
commit 9e65b21e24
2 changed files with 28 additions and 0 deletions

View file

@ -14,6 +14,7 @@ in
(import ./sourcehut.nix { inherit base-domain; }) (import ./sourcehut.nix { inherit base-domain; })
(import ./docspell.nix { inherit base-domain docspell; }) (import ./docspell.nix { inherit base-domain docspell; })
(import ./teedy.nix { inherit base-domain; })
./userprogs.nix ./userprogs.nix
]; ];

27
teedy.nix Normal file
View file

@ -0,0 +1,27 @@
{ base-domain, ... }:
let
fqdn = "teedy.${base-domain}";
in
{
virtualisation.oci-containers = {
containers = {
teedy = {
image = "sismics/docs:v1.11";
ports = [
"7778:8080"
];
volumes = [
"/var/lib/teedy/data:/data"
];
environment = {
DOCS_BASE_URL = fqdn;
DOCS_ADMIN_EMAIL_INIT = "khais.colin@gmail.com";
DATABASE_URL = "jdbc:postgresql://localhost:5432/teedy";
DATABASE_USER = "teedy";
DATABASE_PASSWORD = "teedy";
DOCS_DEFAULT_LANGUAGE = "fra";
};
};
};
};
}