Compare commits
3 Commits
1ae798e30c
...
b3f310d2bd
| Author | SHA1 | Date | |
|---|---|---|---|
| b3f310d2bd | |||
| dd8ec9035e | |||
| e5861f8e6b |
@@ -3,6 +3,7 @@
|
|||||||
{
|
{
|
||||||
# Additional configuration
|
# Additional configuration
|
||||||
imports = [
|
imports = [
|
||||||
|
./containers/dm-companion.nix
|
||||||
./containers/freshrss.nix
|
./containers/freshrss.nix
|
||||||
./containers/gitea.nix
|
./containers/gitea.nix
|
||||||
./containers/grafana.nix
|
./containers/grafana.nix
|
||||||
|
|||||||
35
system/hosts/mcp/containers/dm-companion.nix
Normal file
35
system/hosts/mcp/containers/dm-companion.nix
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
{ config, ... }:
|
||||||
|
let
|
||||||
|
inherit (import ./lib.nix config) mkContainer localHostRule havenisms;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
dm-companion-pocketbase =
|
||||||
|
let
|
||||||
|
hostName = "dm-pocketbase";
|
||||||
|
in
|
||||||
|
mkContainer {
|
||||||
|
inherit hostName;
|
||||||
|
image = "docker.havenisms.com/lazy-dm/pocketbase";
|
||||||
|
port = 8080;
|
||||||
|
volumes = [
|
||||||
|
"dm-companion:/pb/pb_data"
|
||||||
|
];
|
||||||
|
environment = { };
|
||||||
|
extraLabels = {
|
||||||
|
"traefik.http.routers.${hostName}-api.rule" =
|
||||||
|
"PathPrefix(`/api`) && ${localHostRule "dm" havenisms}";
|
||||||
|
"traefik.http.routers.${hostName}-api.service" = "${hostName}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
dm-companion = mkContainer {
|
||||||
|
hostName = "dm";
|
||||||
|
image = "docker.havenisms.com/lazy-dm/app";
|
||||||
|
port = 80;
|
||||||
|
dependsOn = [
|
||||||
|
"dm-companion-pocketbase"
|
||||||
|
];
|
||||||
|
volumes = [ ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -40,6 +40,7 @@ in
|
|||||||
user ? null,
|
user ? null,
|
||||||
extraOptions ? [ ],
|
extraOptions ? [ ],
|
||||||
oauthProxy ? false,
|
oauthProxy ? false,
|
||||||
|
extraLabels ? { },
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
routerRule = if public then hostRule hostName domain else localHostRule hostName domain;
|
routerRule = if public then hostRule hostName domain else localHostRule hostName domain;
|
||||||
@@ -76,7 +77,8 @@ in
|
|||||||
"traefik.http.services.${hostName}.loadbalancer.server.port" = "${toString port}";
|
"traefik.http.services.${hostName}.loadbalancer.server.port" = "${toString port}";
|
||||||
}
|
}
|
||||||
// oauthLabels
|
// oauthLabels
|
||||||
// homepageLabels;
|
// homepageLabels
|
||||||
|
// extraLabels;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Creates a MariaDB container for a specific app. It should be safe to give
|
# Creates a MariaDB container for a specific app. It should be safe to give
|
||||||
|
|||||||
Reference in New Issue
Block a user