+portainer +baserow
This commit is contained in:
26
hosts/AZ-CLD-1/services/containers/baserow.nix
Normal file
26
hosts/AZ-CLD-1/services/containers/baserow.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{config, ...}: {
|
||||
virtualisation.oci-containers.containers."baserow" = {
|
||||
image = "docker.io/baserow/baserow:1.34.5";
|
||||
environmentFiles = [config.age.secrets.baserow-env.path];
|
||||
ports = ["127.0.0.1:3050:80"];
|
||||
volumes = ["baserow_data:/baserow/data"];
|
||||
extraOptions = ["--add-host=postgres:10.89.0.1" "--ip=10.89.0.10" "--network=web"];
|
||||
};
|
||||
# Traefik configuration specific to baserow
|
||||
services.traefik.dynamicConfigOptions.http = {
|
||||
services.baserow.loadBalancer.servers = [
|
||||
{
|
||||
url = "http://localhost:3050/";
|
||||
}
|
||||
];
|
||||
|
||||
routers.baserow = {
|
||||
rule = "Host(`br.az-gruppe.com`)";
|
||||
tls = {
|
||||
certResolver = "ionos";
|
||||
};
|
||||
service = "baserow";
|
||||
entrypoints = "websecure";
|
||||
};
|
||||
};
|
||||
}
|
||||
6
hosts/AZ-CLD-1/services/containers/default.nix
Normal file
6
hosts/AZ-CLD-1/services/containers/default.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
imports = [
|
||||
./baserow.nix
|
||||
./portainer.nix
|
||||
];
|
||||
}
|
||||
28
hosts/AZ-CLD-1/services/containers/portainer.nix
Normal file
28
hosts/AZ-CLD-1/services/containers/portainer.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
virtualisation.oci-containers.containers.portainer = {
|
||||
image = "docker.io/portainer/portainer-ce:latest";
|
||||
ports = ["127.0.0.1:9000:9000"];
|
||||
volumes = [
|
||||
"/etc/localtime:/etc/localtime:ro"
|
||||
"/run/podman/podman.sock:/var/run/docker.sock:ro"
|
||||
"portainer_data:/data"
|
||||
];
|
||||
};
|
||||
# Traefik configuration specific to baserow
|
||||
services.traefik.dynamicConfigOptions.http = {
|
||||
services.portainer.loadBalancer.servers = [
|
||||
{
|
||||
url = "http://localhost:9000/";
|
||||
}
|
||||
];
|
||||
|
||||
routers.portainer = {
|
||||
rule = "Host(`pt.az-gruppe.com`)";
|
||||
tls = {
|
||||
certResolver = "ionos";
|
||||
};
|
||||
service = "portainer";
|
||||
entrypoints = "websecure";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
{
|
||||
imports = [
|
||||
./containers
|
||||
|
||||
./gitea.nix
|
||||
./n8n.nix
|
||||
./ntfy.nix
|
||||
|
||||
Reference in New Issue
Block a user