feat(teedy): configure container for teedy
This commit is contained in:
parent
ddf0dc8d31
commit
9e65b21e24
2 changed files with 28 additions and 0 deletions
|
|
@ -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
27
teedy.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue