Clean up volumes
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -16,8 +16,6 @@ let
|
|||||||
inherit (hmConfig.virtualisation.quadlet) volumes containers networks;
|
inherit (hmConfig.virtualisation.quadlet) volumes containers networks;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
environment.persistence."/persist"."${home}/.local/share/authelia" = { };
|
|
||||||
|
|
||||||
home-manager.users.${user} = {
|
home-manager.users.${user} = {
|
||||||
sops = {
|
sops = {
|
||||||
secrets = {
|
secrets = {
|
||||||
@@ -126,14 +124,18 @@ in
|
|||||||
virtualisation.quadlet = {
|
virtualisation.quadlet = {
|
||||||
networks.authelia.networkConfig.internal = true;
|
networks.authelia.networkConfig.internal = true;
|
||||||
|
|
||||||
volumes."authelia-redis" = { };
|
volumes = {
|
||||||
|
"authelia-redis" = { };
|
||||||
|
"authelia-postgresql" = { };
|
||||||
|
authelia = { };
|
||||||
|
};
|
||||||
|
|
||||||
containers = {
|
containers = {
|
||||||
"authelia-init" = {
|
"authelia-init" = {
|
||||||
containerConfig = {
|
containerConfig = {
|
||||||
image = "docker-archive:${selfPkgs.docker-yq}";
|
image = "docker-archive:${selfPkgs.docker-yq}";
|
||||||
volumes = [
|
volumes = [
|
||||||
"${home}/.local/share/authelia/config:/etc/authelia"
|
"${volumes.authelia.ref}:/etc/authelia"
|
||||||
"${hmConfig.sops.templates."authelia-users.yaml".path}:/etc/authelia/users.yaml.default:ro"
|
"${hmConfig.sops.templates."authelia-users.yaml".path}:/etc/authelia/users.yaml.default:ro"
|
||||||
];
|
];
|
||||||
exec = [
|
exec = [
|
||||||
@@ -157,7 +159,7 @@ in
|
|||||||
containerConfig = {
|
containerConfig = {
|
||||||
image = "docker-archive:${selfPkgs.docker-authelia}";
|
image = "docker-archive:${selfPkgs.docker-authelia}";
|
||||||
volumes = [
|
volumes = [
|
||||||
"${home}/.local/share/authelia/config:/etc/authelia"
|
"${volumes.authelia.ref}:/etc/authelia"
|
||||||
"${
|
"${
|
||||||
hmConfig.sops.templates."authelia-configuration.yaml".path
|
hmConfig.sops.templates."authelia-configuration.yaml".path
|
||||||
}:/etc/authelia/conf.d/configuration.yaml:ro"
|
}:/etc/authelia/conf.d/configuration.yaml:ro"
|
||||||
@@ -192,7 +194,7 @@ in
|
|||||||
containerConfig = {
|
containerConfig = {
|
||||||
image = "docker-archive:${selfPkgs.docker-postgresql}";
|
image = "docker-archive:${selfPkgs.docker-postgresql}";
|
||||||
networks = [ networks.authelia.ref ];
|
networks = [ networks.authelia.ref ];
|
||||||
volumes = [ "${home}/.local/share/authelia/postgresql:/var/lib/postgresql/data" ];
|
volumes = [ "${volumes."authelia-postgresql".ref}:/var/lib/postgresql/data" ];
|
||||||
environments = {
|
environments = {
|
||||||
POSTGRES_DB = "authelia";
|
POSTGRES_DB = "authelia";
|
||||||
POSTGRES_USER = "authelia";
|
POSTGRES_USER = "authelia";
|
||||||
|
@@ -37,7 +37,7 @@ in
|
|||||||
virtualisation.quadlet = {
|
virtualisation.quadlet = {
|
||||||
networks.traefik = { };
|
networks.traefik = { };
|
||||||
|
|
||||||
volumes.letsencrypt.volumeConfig = { };
|
volumes.letsencrypt = { };
|
||||||
|
|
||||||
containers = {
|
containers = {
|
||||||
traefik = {
|
traefik = {
|
||||||
|
Reference in New Issue
Block a user