Compare commits
3 Commits
1ae798e30c
...
b3f310d2bd
| Author | SHA1 | Date | |
|---|---|---|---|
| b3f310d2bd | |||
| dd8ec9035e | |||
| e5861f8e6b |
@@ -3,6 +3,7 @@
|
||||
{
|
||||
# Additional configuration
|
||||
imports = [
|
||||
./containers/dm-companion.nix
|
||||
./containers/freshrss.nix
|
||||
./containers/gitea.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,
|
||||
extraOptions ? [ ],
|
||||
oauthProxy ? false,
|
||||
extraLabels ? { },
|
||||
}:
|
||||
let
|
||||
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}";
|
||||
}
|
||||
// oauthLabels
|
||||
// homepageLabels;
|
||||
// homepageLabels
|
||||
// extraLabels;
|
||||
};
|
||||
|
||||
# Creates a MariaDB container for a specific app. It should be safe to give
|
||||
|
||||
Reference in New Issue
Block a user