begin great docker migration

This commit is contained in:
2026-01-30 00:08:37 -06:00
parent 4bccbb92f4
commit 2f4419eb59
15 changed files with 151 additions and 365 deletions

View File

@@ -2,7 +2,7 @@
hostPort = 9005;
subdomain = "auth2";
subdomain = "auth";
name = "authentik";
@@ -33,9 +33,6 @@ in {
'';
};
######################################################################################
# Containers
virtualisation.oci-containers.containers."authentik-postgresql" = {
image = "docker.io/library/postgres:16-alpine";
environment = {
@@ -91,7 +88,7 @@ in {
};
environmentFiles = [ config.sops.templates."authentik.env".path ];
labels = {
"traefik.http.routers.${name}.entrypoints" = "localsecure";
"traefik.http.routers.${name}.entrypoints" = "websecure,localsecure";
"traefik.http.routers.${name}.rule" = "Host(`${subdomain}.esotericbytes.com`)";
"traefik.http.routers.${name}.service" = "${name}";
"traefik.http.routers.${name}.tls.certResolver" = "cloudflare";
@@ -212,7 +209,7 @@ in {
RemainAfterExit = true;
};
script = ''
docker volume inspect authentik_database || docker volume create authentik_database --driver=local
docker volume inspect authentik_database || docker volume create authentik_database --driver=btrfs
'';
partOf = [ "docker-compose-authentik-root.target" ];
wantedBy = [ "docker-compose-authentik-root.target" ];