change to socket connections
This commit is contained in:
@@ -11,7 +11,7 @@ let
|
||||
ctype = lib.strings.toUpper container_type;
|
||||
in
|
||||
{
|
||||
"${ctype}__POSTGRES__HOST" = "host.docker.internal";
|
||||
"${ctype}__POSTGRES__HOST" = "/var/run/postgresql";
|
||||
"${ctype}__POSTGRES__PORT" = toString config.services.postgresql.settings.port;
|
||||
};
|
||||
in
|
||||
@@ -54,7 +54,7 @@ in
|
||||
PUID = "600";
|
||||
PGID = "100";
|
||||
TZ = "America/New_York";
|
||||
POSTGRES_HOST = "host.docker.internal";
|
||||
POSTGRES_HOST = "/var/run/postgresql";
|
||||
POSTGRES_PORT = toString config.services.postgresql.settings.port;
|
||||
};
|
||||
environmentFiles = [
|
||||
@@ -63,10 +63,10 @@ in
|
||||
volumes = [
|
||||
"${vars.primary_docker}/bazarr:/config"
|
||||
"${vars.primary_plex_storage}/data:/data"
|
||||
"/var/run/postgresql:/var/run/postgresql"
|
||||
];
|
||||
extraOptions = [
|
||||
"--network=arrnet"
|
||||
"--add-host=host.docker.internal:host-gateway"
|
||||
];
|
||||
autoStart = true;
|
||||
};
|
||||
@@ -86,10 +86,12 @@ in
|
||||
];
|
||||
extraOptions = [
|
||||
"--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;
|
||||
};
|
||||
radarr = {
|
||||
@@ -109,10 +111,10 @@ in
|
||||
volumes = [
|
||||
"${vars.primary_docker}/radarr:/config"
|
||||
"${vars.primary_plex_storage}/data:/data"
|
||||
"/var/run/postgresql:/var/run/postgresql"
|
||||
];
|
||||
extraOptions = [
|
||||
"--network=arrnet"
|
||||
"--add-host=host.docker.internal:host-gateway"
|
||||
];
|
||||
autoStart = true;
|
||||
};
|
||||
@@ -133,10 +135,10 @@ in
|
||||
volumes = [
|
||||
"${vars.primary_docker}/sonarr:/config"
|
||||
"${vars.primary_plex_storage}/data:/data"
|
||||
"/var/run/postgresql:/var/run/postgresql"
|
||||
];
|
||||
extraOptions = [
|
||||
"--network=arrnet"
|
||||
"--add-host=host.docker.internal:host-gateway"
|
||||
];
|
||||
autoStart = true;
|
||||
};
|
||||
@@ -157,11 +159,10 @@ in
|
||||
volumes = [
|
||||
"${vars.primary_docker}/lidarr:/config"
|
||||
"${vars.primary_plex_storage}/data:/data"
|
||||
"/var/run/postgresql:/var/run/postgresql"
|
||||
];
|
||||
extraOptions = [
|
||||
"--network=arrnet"
|
||||
"--add-host=host.docker.internal:host-gateway"
|
||||
|
||||
];
|
||||
autoStart = true;
|
||||
};
|
||||
@@ -176,6 +177,7 @@ in
|
||||
volumes = [
|
||||
"${vars.primary_docker}/unpackerr:/config"
|
||||
"${vars.primary_plex_storage}:/data"
|
||||
"/var/run/postgresql:/var/run/postgresql"
|
||||
];
|
||||
extraOptions = [ "--network=arrnet" ];
|
||||
autoStart = true;
|
||||
@@ -193,6 +195,7 @@ in
|
||||
volumes = [
|
||||
"${vars.primary_docker}/notifiarr:/config"
|
||||
"${vars.primary_plex_storage}:/data"
|
||||
"/var/run/postgresql:/var/run/postgresql"
|
||||
];
|
||||
extraOptions = [ "--network=arrnet" ];
|
||||
autoStart = true;
|
||||
@@ -206,18 +209,20 @@ in
|
||||
PGID = "100";
|
||||
TZ = "America/New_York";
|
||||
DB_TYPE = "postgres";
|
||||
DB_HOST = "host.docker.internal";
|
||||
DB_HOST = "/var/run/postgresql";
|
||||
DB_PORT = toString config.services.postgresql.settings.port;
|
||||
};
|
||||
environmentFiles = [
|
||||
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
|
||||
extraOptions = [
|
||||
"--network=arrnet"
|
||||
"--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-start-period 20s"
|
||||
# "--health-timeout 3s"
|
||||
|
||||
Reference in New Issue
Block a user