27 lines
758 B
Nix
27 lines
758 B
Nix
{config, ...}: {
|
|
virtualisation.oci-containers.containers."baserow" = {
|
|
image = "docker.io/baserow/baserow:1.34.2";
|
|
environmentFiles = [config.age.secrets.baserow-env.path];
|
|
ports = ["127.0.0.1:3032:80"];
|
|
volumes = ["baserow_data:/baserow/data"];
|
|
extraOptions = ["--add-host=postgres:10.89.0.1" "--ip=10.89.0.11" "--network=web"];
|
|
};
|
|
# Traefik configuration specific to baserow
|
|
services.traefik.dynamicConfigOptions.http = {
|
|
services.baserow.loadBalancer.servers = [
|
|
{
|
|
url = "http://localhost:3032/";
|
|
}
|
|
];
|
|
|
|
routers.baserow = {
|
|
rule = "Host(`db.i.az-intec.com`)";
|
|
tls = {
|
|
certResolver = "ionos";
|
|
};
|
|
service = "baserow";
|
|
entrypoints = "websecure";
|
|
};
|
|
};
|
|
}
|