Refactor container working dirs

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-07-06 11:36:13 +01:00
parent bf49eac272
commit 48d3ba5092
19 changed files with 29 additions and 16 deletions

View File

@@ -11,8 +11,16 @@ pkgs.dockerTools.buildImage {
config = {
Entrypoint = [ "authelia" ];
Cmd = [
"--config"
"/etc/authelia/configuration.yaml"
];
ExposedPorts = {
"9091/tcp" = { };
};
WorkingDir = "/etc/authelia";
Volumes = {
"/etc/authelia" = { };
};
};
}

View File

@@ -27,6 +27,7 @@ pkgs.dockerTools.buildImage {
"3000/tcp" = { };
};
Env = [ "GITEA_WORK_DIR=/var/lib/gitea/" ];
WorkingDir = "/var/lib/gitea";
Volumes = {
"/var/lib/gitea/data" = { };
"/var/lib/gitea/log" = { };

View File

@@ -25,6 +25,7 @@ pkgs.dockerTools.buildImage {
"--config"
"/etc/grafana/grafana.ini"
];
WorkingDir = "/etc/grafana";
ExposedPorts = {
"3000/tcp" = { };
};

View File

@@ -98,6 +98,7 @@ pkgs.dockerTools.buildImage {
ExposedPorts = {
"8096/tcp" = { };
};
WorkingDir = "/var/lib/jellyfin";
Volumes = {
"/etc/jellyfin" = { };
"/var/lib/jellyfin" = { };

View File

@@ -31,10 +31,10 @@ pkgs.dockerTools.buildImage {
config = {
Entrypoint = [ "entrypoint" ];
WorkingDir = "/var/lib/mysql";
ExposedPorts = {
"3306/tcp" = { };
};
WorkingDir = "/var/lib/mysql";
Volumes = {
"/var/lib/mysql" = { };
};

View File

@@ -166,12 +166,12 @@ pkgs.dockerTools.buildImage {
"-f"
"/etc/httpd/httpd.conf"
];
WorkingDir = "/var/lib/nextcloud";
Volumes = {
"/var/www/nextcloud/config" = { };
"/var/www/nextcloud/apps" = { };
"/var/lib/nextcloud" = { };
};
WorkingDir = "/var/www/nextcloud";
ExposedPorts = {
"80/tcp" = { };
};

View File

@@ -15,6 +15,7 @@ pkgs.dockerTools.buildImage {
ExposedPorts = {
"80/tcp" = { };
};
WorkingDir = "/var/lib/ntfy";
Volumes = {
"/var/lib/ntfy" = { };
};

View File

@@ -31,6 +31,7 @@ pkgs.dockerTools.buildImage {
"ROCKET_PROFILE=release"
"ROCKET_ADDRESS=0.0.0.0"
];
WorkingDir = "/var/lib/vaultwarden";
Volumes = {
"/var/lib/vaultwarden" = { };
};

View File

@@ -17,9 +17,9 @@ pkgs.dockerTools.buildImage {
ExposedPorts = {
"3000/tcp" = { };
};
WorkingDir = "${pkgs.outline}/share/outline";
Volumes = {
"/var/lib/outline/data" = { };
};
WorkingDir = "${pkgs.outline}/share/outline";
};
}

View File

@@ -37,10 +37,10 @@ pkgs.dockerTools.buildImage {
config = {
Entrypoint = [ "entrypoint" ];
WorkingDir = "/var/lib/postgresql";
ExposedPorts = {
"5432/tcp" = { };
};
WorkingDir = "/var/lib/postgresql";
Volumes = {
"/var/lib/postgresql/data" = { };
};

View File

@@ -14,6 +14,7 @@ pkgs.dockerTools.buildImage {
ExposedPorts = {
"9090/tcp" = { };
};
WorkingDir = "/var/lib/prometheus";
Volumes = {
"/var/lib/prometheus" = { };
};

View File

@@ -17,10 +17,10 @@ pkgs.dockerTools.buildImage {
config = {
Entrypoint = [ "redis-server" ];
WorkingDir = "/var/lib/redis";
ExposedPorts = {
"6379/tcp" = { };
};
WorkingDir = "/var/lib/redis";
Volumes = {
"/var/lib/redis" = { };
};

View File

@@ -70,12 +70,12 @@ pkgs.dockerTools.buildImage {
config = {
Entrypoint = [ "entrypoint" ];
ExposedPorts = {
"8080/tcp" = { };
};
WorkingDir = "/var/www/shlink";
Volumes = {
"/var/www/shlink/data" = { };
};
ExposedPorts = {
"8080/tcp" = { };
};
};
}

View File

@@ -22,6 +22,7 @@ pkgs.dockerTools.buildImage {
ExposedPorts = {
"2222/tcp" = { };
};
WorkingDir = "/etc/sish";
Volumes = {
"/etc/sish/keys" = { };
"/etc/sish/pubkeys" = { };

View File

@@ -44,6 +44,7 @@ pkgs.dockerTools.buildImage {
ExposedPorts = {
"9091/tcp" = { };
};
WorkingDir = "/var/lib/transmission";
Volumes = {
"/etc/transmission" = { };
"/var/lib/transmission" = { };