[dm-companion] Sets up auto-deploy and moves it to terakoda.com
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{ config, ... }:
|
||||
let
|
||||
inherit (import ./lib.nix config) mkContainer localHostRule havenisms;
|
||||
inherit (import ./lib.nix config) mkContainer localHostRule terakoda;
|
||||
in
|
||||
{
|
||||
virtualisation.oci-containers.containers = {
|
||||
@@ -14,22 +14,27 @@ in
|
||||
port = 8080;
|
||||
volumes = [
|
||||
"dm-companion:/pb/pb_data"
|
||||
"/tank/web/dm.terakoda.com/pb_migrations:/pb/pb_migrations:ro"
|
||||
];
|
||||
environment = { };
|
||||
extraLabels = {
|
||||
"traefik.http.routers.${hostName}-api.rule" =
|
||||
"PathPrefix(`/api`) && ${localHostRule "dm" havenisms}";
|
||||
"PathPrefix(`/api`) && ${localHostRule "dm" terakoda}";
|
||||
"traefik.http.routers.${hostName}-api.service" = "${hostName}";
|
||||
};
|
||||
};
|
||||
|
||||
dm-companion = mkContainer {
|
||||
image = "nginx:alpine";
|
||||
hostName = "dm";
|
||||
image = "docker.havenisms.com/lazy-dm/app";
|
||||
domain = terakoda;
|
||||
port = 80;
|
||||
dependsOn = [
|
||||
"dm-companion-pocketbase"
|
||||
];
|
||||
volumes = [ ];
|
||||
volumes = [
|
||||
"/tank/web/dm.terakoda.com/dist:/usr/share/nginx/html:ro"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user