Add immich

This commit is contained in:
Maurice
2025-10-03 17:00:07 +02:00
parent 0a87de85d1
commit b8d781c9c4
5 changed files with 85 additions and 0 deletions

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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