diff --git a/services/immich/immich-ml.service.toml b/services/immich/immich-ml.service.toml new file mode 100644 index 0000000..979b051 --- /dev/null +++ b/services/immich/immich-ml.service.toml @@ -0,0 +1,18 @@ +user = "podman" + +[service] +name = "immich_machine_learning" +image = "ghcr.io/immich-app/immich-machine-learning:release" + +[[network]] +name = "immich" +group = "caddy" + +[[volumes]] +source = "immich-ml-data" +target = "/cache" + +[environment] +DB_USERNAME = "immich" +DB_PASSWORD = "EBYUcFlxwocGSL2" +DB_DATABASE_NAME = "immich" \ No newline at end of file diff --git a/services/immich/immich-postgres.service.toml b/services/immich/immich-postgres.service.toml new file mode 100644 index 0000000..d616ac6 --- /dev/null +++ b/services/immich/immich-postgres.service.toml @@ -0,0 +1,19 @@ +user = "podman" + +[service] +name = "immich_postgres" +image = "ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:41eacbe83eca995561fe43814fd4891e16e39632806253848efaf04d3c8a8b84" + +[[network]] +name = "immich" +group = "caddy" + +[[volumes]] +source = "/mnt/ssd/immich-postgres" +target = "/var/lib/postgresql/data" + +[environment] +POSTGRES_USER = "immich" +POSTGRES_PASSWORD = "EBYUcFlxwocGSL2" +POSTGRES_DB = "immich" +POSTGRES_INITDB_ARGS = "--data-checksums" \ No newline at end of file diff --git a/services/immich/immich-redis.service.toml b/services/immich/immich-redis.service.toml new file mode 100644 index 0000000..2a72dc2 --- /dev/null +++ b/services/immich/immich-redis.service.toml @@ -0,0 +1,12 @@ +user = "podman" + +[service] +name = "immich_redis" +image = "docker.io/valkey/valkey:8-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571" + +[[network]] +name = "immich" +group = "caddy" + +[service.healthcheck] +cmd = "redis-cli ping || exit 1" \ No newline at end of file diff --git a/services/immich/immich-server.service.toml b/services/immich/immich-server.service.toml new file mode 100644 index 0000000..2b04bd4 --- /dev/null +++ b/services/immich/immich-server.service.toml @@ -0,0 +1,25 @@ +user = "podman" + +[service] +name = "immich_server" +image = "ghcr.io/immich-app/immich-server:release" +depend = ["immich_redis.service", "immich_postgres.service"] + +[[network]] +name = "immich" +group = "caddy" + +[[mounts]] +typ = "bind" +source = "/etc/localtime" +target = "/etc/localtime" +readonly = true + +[[volumes]] +source = "/mnt/ssd/immich" +target = "/data" + +[environment] +DB_USERNAME = "immich" +DB_PASSWORD = "EBYUcFlxwocGSL2" +DB_DATABASE_NAME = "immich" \ No newline at end of file diff --git a/services/immich/install.sh b/services/immich/install.sh new file mode 100644 index 0000000..dc8d311 --- /dev/null +++ b/services/immich/install.sh @@ -0,0 +1,11 @@ +#!/bin/sh +chmod +x /etc/init.d/immich*.service +rc-update add immich_server.service default +rc-update add immich_redis.service default +rc-update add immich_machine_learning.service default +rc-update add immich_postgres.service default + +rc-service immich_redis start +rc-service immich_postgres start +rc-service immich_machine_learning start +rc-service immich_server start \ No newline at end of file