fix immich

This commit is contained in:
mjallen18
2024-09-20 23:05:15 -05:00
parent bd812ddae0
commit 44b9221998

View File

@@ -16,7 +16,6 @@ in
log-driver = "journald";
extraOptions = [
"--network-alias=immich-machine-learning"
"--network=immich_default"
"--device=nvidia.com/gpu=0"
];
ports = [
@@ -32,12 +31,6 @@ in
serviceConfig = {
Restart = lib.mkOverride 500 "always";
};
after = [
"podman-network-immich_default.service"
];
requires = [
"podman-network-immich_default.service"
];
partOf = [
"podman-compose-immich-root.target"
];
@@ -71,7 +64,6 @@ in
"--health-interval=5m0s"
"--health-start-period=5m0s"
"--network-alias=database"
"--network=immich_default"
];
};
@@ -79,12 +71,6 @@ in
serviceConfig = {
Restart = lib.mkOverride 500 "always";
};
after = [
"podman-network-immich_default.service"
];
requires = [
"podman-network-immich_default.service"
];
partOf = [
"podman-compose-immich-root.target"
];
@@ -99,7 +85,6 @@ in
extraOptions = [
"--health-cmd=redis-cli ping || exit 1"
"--network-alias=redis"
"--network=immich_default"
];
ports = [
"6381:6379"
@@ -114,12 +99,6 @@ in
serviceConfig = {
Restart = lib.mkOverride 500 "always";
};
after = [
"podman-network-immich_default.service"
];
requires = [
"podman-network-immich_default.service"
];
partOf = [
"podman-compose-immich-root.target"
];
@@ -147,7 +126,6 @@ in
log-driver = "journald";
extraOptions = [
"--network-alias=immich-server"
"--network=immich_default"
"--device=nvidia.com/gpu=0"
];
environment = {
@@ -169,12 +147,6 @@ in
serviceConfig = {
Restart = lib.mkOverride 500 "always";
};
after = [
"podman-network-immich_default.service"
];
requires = [
"podman-network-immich_default.service"
];
partOf = [
"podman-compose-immich-root.target"
];
@@ -183,20 +155,6 @@ in
];
};
systemd.services."podman-network-immich_default" = {
path = [ pkgs.podman ];
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
ExecStop = "podman network rm -f immich_default";
};
script = ''
podman network inspect immich_default || podman network create immich_default
'';
partOf = [ "podman-compose-immich-root.target" ];
wantedBy = [ "podman-compose-immich-root.target" ];
};
# Root service
# When started, this will automatically create all resources and start
# the containers. When stopped, this will teardown all resources.