Add immich
This commit is contained in:
18
services/immich/immich-ml.service.toml
Normal file
18
services/immich/immich-ml.service.toml
Normal 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"
|
||||||
19
services/immich/immich-postgres.service.toml
Normal file
19
services/immich/immich-postgres.service.toml
Normal 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"
|
||||||
12
services/immich/immich-redis.service.toml
Normal file
12
services/immich/immich-redis.service.toml
Normal 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"
|
||||||
25
services/immich/immich-server.service.toml
Normal file
25
services/immich/immich-server.service.toml
Normal 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"
|
||||||
11
services/immich/install.sh
Normal file
11
services/immich/install.sh
Normal 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
|
||||||
Reference in New Issue
Block a user