feat: medama definition
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
./anubis
|
./anubis
|
||||||
./forgejo
|
./forgejo
|
||||||
./locales.nix
|
./locales.nix
|
||||||
|
./medama.nix
|
||||||
./nh
|
./nh
|
||||||
./tailscale.nix
|
./tailscale.nix
|
||||||
./xcaddy
|
./xcaddy
|
||||||
|
|||||||
@@ -19,15 +19,13 @@ in {
|
|||||||
virtualisation.oci-containers.containers.medama = {
|
virtualisation.oci-containers.containers.medama = {
|
||||||
image = "ghcr.io/medama-io/medama:v0.5.2";
|
image = "ghcr.io/medama-io/medama:v0.5.2";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
ports = [
|
extraOptions = ["--network=host"];
|
||||||
"${cfg.port}:8080"
|
|
||||||
];
|
|
||||||
volumes = [
|
volumes = [
|
||||||
"/var/lib/medama/data:/app/data"
|
"/var/lib/medama/data:/app/data"
|
||||||
];
|
];
|
||||||
environment = {
|
environment = {
|
||||||
AUTO_SLL = toString cfg.ssl;
|
AUTO_SLL = toString cfg.ssl;
|
||||||
PORT = toString 8080;
|
PORT = toString cfg.port;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user