begin great docker migration
This commit is contained in:
@@ -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" ];
|
||||
|
||||
Reference in New Issue
Block a user