Skip to content

Commit

Permalink
Update to 1.108.0
Browse files Browse the repository at this point in the history
I also removed the dependency on machine-learning since it's not
required for immich to start.
  • Loading branch information
jbtrystram committed Jul 15, 2024
1 parent 724b85b commit 3f570e2
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 32 deletions.
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
# immich-app podman + quadlet deployment

⚠️ **Curently supported immich version: [v1.108.0](https://github.com/immich-app/immich/releases/tag/v1.108.0)** ⚠️


This is a set of unit files to deploy immich through the podman-quadlet systemd generator

See the [documentation](https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html)
This is adapted from immich provided docker-compose file, this will create a podman pod hosting all thc containers.

# Overview

This setup consist in one `.image` file that does some prep work: pulling the image and creating a podman pod that will host all the containers
Then the `.container` files are translated into systemd units that create the containers.
This setup consist in:
- `immich.pod` file defining a pod that will host all the containers.
- `immich-server.image` defining the immich version.
- several `immich-*.container` files defining the containers, volumes etc..

The `.container` files are translated into systemd units that create the containers.

Note how the `immich-server.container` have an install target on `default.target` which makes it start on boot.
I am not sure the `multi-user` target is really needed.

# How do I deploy it ?

Rename `env.example` to `immich.env`.
Rename `env.example` to `immich.env`. Populate the values as needed.

## rootful podman

Expand Down Expand Up @@ -74,4 +80,4 @@ The containers should start on the next boot automatically.

# TODO
- write a makefile or a justfile that insert the variables in the unit files maybe ? Right now it requires some copy and pasting.
- Contribute it upstream to immich
- Contribute it upstream to immich : no longer a goal, they stated they are [not interested](https://github.com/immich-app/immich/discussions/7977).
2 changes: 1 addition & 1 deletion immich-database.container
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ HealthCmd=["/usr/bin/pg_isready"]
HealthStartPeriod=30s
HealthInterval=10s
HealthTimeout=5s
HealthRetries=5
HealthRetries=2
Notify=healthy

[Service]
Expand Down
22 changes: 0 additions & 22 deletions immich-microservices.container

This file was deleted.

2 changes: 1 addition & 1 deletion immich-redis.container
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Container]
Pod=immich.pod
ContainerName=immich_redis
Image=docker.io/redis:6.2-alpine@sha256:51d6c56749a4243096327e3fb964a48ed92254357108449cb6e23999c37773c5
Image=docker.io/redis:6.2-alpine@sha256:328fe6a5822256d065debb36617a8169dbfbd77b797c525288e465f56c1d392b
HealthCmd=["/usr/local/bin/redis-cli", "ping"]
HealthStartPeriod=30s
HealthInterval=10s
Expand Down
6 changes: 4 additions & 2 deletions immich-server.container
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Unit]
Requires=immich-redis.service immich-database.service immich-microservices.service immich-database.service immich-machine-learning.service
After=immich-redis.service immich-database.service immich-microservices.service immich-database.service immich-machine-learning.service
Requires=immich-redis.service immich-database.service
After=immich-redis.service immich-database.service

[Container]
Pod=immich.pod
Expand All @@ -18,6 +18,8 @@ HealthRetries=10
Notify=healthy

[Service]
# give some time to the database to start
ExecStartPre=sleep 30
Restart=always

[Install]
Expand Down
2 changes: 1 addition & 1 deletion immich-server.image
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Wants=nss-lookup.target
After=nss-lookup.target

[Image]
Image=ghcr.io/immich-app/immich-server:v1.101.1
Image=ghcr.io/immich-app/immich-server:v1.108.0

0 comments on commit 3f570e2

Please sign in to comment.