change to socket connections
This commit is contained in:
@@ -11,7 +11,7 @@ let
|
|||||||
ctype = lib.strings.toUpper container_type;
|
ctype = lib.strings.toUpper container_type;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
"${ctype}__POSTGRES__HOST" = "host.docker.internal";
|
"${ctype}__POSTGRES__HOST" = "/var/run/postgresql";
|
||||||
"${ctype}__POSTGRES__PORT" = toString config.services.postgresql.settings.port;
|
"${ctype}__POSTGRES__PORT" = toString config.services.postgresql.settings.port;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
@@ -54,7 +54,7 @@ in
|
|||||||
PUID = "600";
|
PUID = "600";
|
||||||
PGID = "100";
|
PGID = "100";
|
||||||
TZ = "America/New_York";
|
TZ = "America/New_York";
|
||||||
POSTGRES_HOST = "host.docker.internal";
|
POSTGRES_HOST = "/var/run/postgresql";
|
||||||
POSTGRES_PORT = toString config.services.postgresql.settings.port;
|
POSTGRES_PORT = toString config.services.postgresql.settings.port;
|
||||||
};
|
};
|
||||||
environmentFiles = [
|
environmentFiles = [
|
||||||
@@ -63,10 +63,10 @@ in
|
|||||||
volumes = [
|
volumes = [
|
||||||
"${vars.primary_docker}/bazarr:/config"
|
"${vars.primary_docker}/bazarr:/config"
|
||||||
"${vars.primary_plex_storage}/data:/data"
|
"${vars.primary_plex_storage}/data:/data"
|
||||||
|
"/var/run/postgresql:/var/run/postgresql"
|
||||||
];
|
];
|
||||||
extraOptions = [
|
extraOptions = [
|
||||||
"--network=arrnet"
|
"--network=arrnet"
|
||||||
"--add-host=host.docker.internal:host-gateway"
|
|
||||||
];
|
];
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
};
|
};
|
||||||
@@ -86,10 +86,12 @@ in
|
|||||||
];
|
];
|
||||||
extraOptions = [
|
extraOptions = [
|
||||||
"--network=arrnet"
|
"--network=arrnet"
|
||||||
|
|
||||||
"--add-host=host.docker.internal:host-gateway"
|
|
||||||
];
|
];
|
||||||
volumes = [ "${vars.primary_docker}/prowlarr:/config" ];
|
volumes = [
|
||||||
|
"${vars.primary_docker}/prowlarr:/config"
|
||||||
|
|
||||||
|
"/var/run/postgresql:/var/run/postgresql"
|
||||||
|
];
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
};
|
};
|
||||||
radarr = {
|
radarr = {
|
||||||
@@ -109,10 +111,10 @@ in
|
|||||||
volumes = [
|
volumes = [
|
||||||
"${vars.primary_docker}/radarr:/config"
|
"${vars.primary_docker}/radarr:/config"
|
||||||
"${vars.primary_plex_storage}/data:/data"
|
"${vars.primary_plex_storage}/data:/data"
|
||||||
|
"/var/run/postgresql:/var/run/postgresql"
|
||||||
];
|
];
|
||||||
extraOptions = [
|
extraOptions = [
|
||||||
"--network=arrnet"
|
"--network=arrnet"
|
||||||
"--add-host=host.docker.internal:host-gateway"
|
|
||||||
];
|
];
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
};
|
};
|
||||||
@@ -133,10 +135,10 @@ in
|
|||||||
volumes = [
|
volumes = [
|
||||||
"${vars.primary_docker}/sonarr:/config"
|
"${vars.primary_docker}/sonarr:/config"
|
||||||
"${vars.primary_plex_storage}/data:/data"
|
"${vars.primary_plex_storage}/data:/data"
|
||||||
|
"/var/run/postgresql:/var/run/postgresql"
|
||||||
];
|
];
|
||||||
extraOptions = [
|
extraOptions = [
|
||||||
"--network=arrnet"
|
"--network=arrnet"
|
||||||
"--add-host=host.docker.internal:host-gateway"
|
|
||||||
];
|
];
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
};
|
};
|
||||||
@@ -157,11 +159,10 @@ in
|
|||||||
volumes = [
|
volumes = [
|
||||||
"${vars.primary_docker}/lidarr:/config"
|
"${vars.primary_docker}/lidarr:/config"
|
||||||
"${vars.primary_plex_storage}/data:/data"
|
"${vars.primary_plex_storage}/data:/data"
|
||||||
|
"/var/run/postgresql:/var/run/postgresql"
|
||||||
];
|
];
|
||||||
extraOptions = [
|
extraOptions = [
|
||||||
"--network=arrnet"
|
"--network=arrnet"
|
||||||
"--add-host=host.docker.internal:host-gateway"
|
|
||||||
|
|
||||||
];
|
];
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
};
|
};
|
||||||
@@ -176,6 +177,7 @@ in
|
|||||||
volumes = [
|
volumes = [
|
||||||
"${vars.primary_docker}/unpackerr:/config"
|
"${vars.primary_docker}/unpackerr:/config"
|
||||||
"${vars.primary_plex_storage}:/data"
|
"${vars.primary_plex_storage}:/data"
|
||||||
|
"/var/run/postgresql:/var/run/postgresql"
|
||||||
];
|
];
|
||||||
extraOptions = [ "--network=arrnet" ];
|
extraOptions = [ "--network=arrnet" ];
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
@@ -193,6 +195,7 @@ in
|
|||||||
volumes = [
|
volumes = [
|
||||||
"${vars.primary_docker}/notifiarr:/config"
|
"${vars.primary_docker}/notifiarr:/config"
|
||||||
"${vars.primary_plex_storage}:/data"
|
"${vars.primary_plex_storage}:/data"
|
||||||
|
"/var/run/postgresql:/var/run/postgresql"
|
||||||
];
|
];
|
||||||
extraOptions = [ "--network=arrnet" ];
|
extraOptions = [ "--network=arrnet" ];
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
@@ -206,18 +209,20 @@ in
|
|||||||
PGID = "100";
|
PGID = "100";
|
||||||
TZ = "America/New_York";
|
TZ = "America/New_York";
|
||||||
DB_TYPE = "postgres";
|
DB_TYPE = "postgres";
|
||||||
DB_HOST = "host.docker.internal";
|
DB_HOST = "/var/run/postgresql";
|
||||||
DB_PORT = toString config.services.postgresql.settings.port;
|
DB_PORT = toString config.services.postgresql.settings.port;
|
||||||
};
|
};
|
||||||
environmentFiles = [
|
environmentFiles = [
|
||||||
config.sops.secrets."docker/jellyseerr".path
|
config.sops.secrets."docker/jellyseerr".path
|
||||||
];
|
];
|
||||||
volumes = [ "${vars.primary_docker}/overseerr:/config" ];
|
volumes = [
|
||||||
|
"${vars.primary_docker}/overseerr:/config"
|
||||||
|
"/var/run/postgresql:/var/run/postgresql"
|
||||||
|
];
|
||||||
# TODO: remove ports later since this is going through web
|
# TODO: remove ports later since this is going through web
|
||||||
extraOptions = [
|
extraOptions = [
|
||||||
"--network=arrnet"
|
"--network=arrnet"
|
||||||
"--network=haproxy-net"
|
"--network=haproxy-net"
|
||||||
"--add-host=host.docker.internal:host-gateway"
|
|
||||||
# "--health-cmd \"wget --no-verbose --tries 1 --spider http://localhost:5055/api/v1/status || exit 1\""
|
# "--health-cmd \"wget --no-verbose --tries 1 --spider http://localhost:5055/api/v1/status || exit 1\""
|
||||||
# "--health-start-period 20s"
|
# "--health-start-period 20s"
|
||||||
# "--health-timeout 3s"
|
# "--health-timeout 3s"
|
||||||
|
|||||||
Reference in New Issue
Block a user