immich quadlets

This commit is contained in:
Michal Vanko 2024-02-28 23:17:58 +01:00
parent b2ba8c7f4a
commit d5ae86c2cc
6 changed files with 137 additions and 0 deletions

12
immich/database.container Normal file
View File

@ -0,0 +1,12 @@
# database.container
[Container]
ContainerName=immich_postgres
Environment=POSTGRES_PASSWORD=${DB_PASSWORD} POSTGRES_USER=${DB_USERNAME} POSTGRES_DB=${DB_DATABASE_NAME}
Image=tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
Volume=pgdata:/var/lib/postgresql/data
[Service]
Restart=always
[Install]
WantedBy=default.target

View File

@ -0,0 +1,12 @@
# immich-machine-learning.container
[Container]
ContainerName=immich_machine_learning
EnvironmentFile=.env
Image=ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
Volume=model-cache:/cache
[Service]
Restart=always
[Install]
WantedBy=default.target

View File

@ -0,0 +1,18 @@
# immich-microservices.container
[Unit]
Requires=redis.service database.service
[Container]
ContainerName=immich_microservices
EnvironmentFile=.env
Exec=start.sh microservices
Image=ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
AutoUpdate=registry
Volume=${UPLOAD_LOCATION}:/usr/src/app/upload
Volume=/etc/localtime:/etc/localtime:ro
[Service]
Restart=always
[Install]
WantedBy=default.target

View File

@ -0,0 +1,19 @@
# immich-server.container
[Unit]
Requires=redis.service database.service
[Container]
ContainerName=immich_server
EnvironmentFile=.env
Exec=start.sh immich
Image=ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
AutoUpdate=registry
PublishPort=2283:3001
Volume=${UPLOAD_LOCATION}:/usr/src/app/upload
Volume=/etc/localtime:/etc/localtime:ro
[Service]
Restart=always
[Install]
WantedBy=default.target

View File

@ -0,0 +1,66 @@
# immich-server.container
[Unit]
Requires=redis.service database.service
[Container]
ContainerName=immich_server
EnvironmentFile=.env
Exec=start.sh immich
Image=ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
PublishPort=2283:3001
Volume=${UPLOAD_LOCATION}:/usr/src/app/upload
Volume=/etc/localtime:/etc/localtime:ro
[Service]
Restart=always
---
# immich-microservices.container
[Unit]
Requires=redis.service database.service
[Container]
ContainerName=immich_microservices
EnvironmentFile=.env
Exec=start.sh microservices
Image=ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
Volume=${UPLOAD_LOCATION}:/usr/src/app/upload
Volume=/etc/localtime:/etc/localtime:ro
[Service]
Restart=always
---
# immich-machine-learning.container
[Container]
ContainerName=immich_machine_learning
EnvironmentFile=.env
Image=ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
Volume=model-cache:/cache
[Service]
Restart=always
---
# redis.container
[Container]
ContainerName=immich_redis
Image=redis:6.2-alpine@sha256:51d6c56749a4243096327e3fb964a48ed92254357108449cb6e23999c37773c5
[Service]
Restart=always
---
# database.container
[Container]
ContainerName=immich_postgres
Environment=POSTGRES_PASSWORD=${DB_PASSWORD} POSTGRES_USER=${DB_USERNAME} POSTGRES_DB=${DB_DATABASE_NAME}
Image=tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
Volume=pgdata:/var/lib/postgresql/data
[Service]
Restart=always

10
immich/redis.container Normal file
View File

@ -0,0 +1,10 @@
# redis.container
[Container]
ContainerName=immich_redis
Image=redis:6.2-alpine@sha256:51d6c56749a4243096327e3fb964a48ed92254357108449cb6e23999c37773c5
[Service]
Restart=always
[Install]
WantedBy=default.target