live containers on quadlets

This commit is contained in:
Michal Vanko 2024-02-29 00:29:28 +01:00
parent a446962e85
commit f8a9e8e102
9 changed files with 32 additions and 8 deletions

View File

@ -1,9 +1,11 @@
# database.container
[Container]
ContainerName=immich_postgres
Environment=POSTGRES_PASSWORD=${DB_PASSWORD} POSTGRES_USER=${DB_USERNAME} POSTGRES_DB=${DB_DATABASE_NAME}
HostName=immich_postgres
EnvironmentFile=.env
Image=tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
Volume=pgdata:/var/lib/postgresql/data
Volume=database.volume:/var/lib/postgresql/data
Network=immich-network.network
[Service]
Restart=always

3
immich/database.volume Normal file
View File

@ -0,0 +1,3 @@
# database.volume
[Volume]
Driver=local

View File

@ -1,9 +1,11 @@
# immich-machine-learning.container
[Container]
ContainerName=immich_machine_learning
HostName=immich_machine_learning
EnvironmentFile=.env
Image=ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
Volume=model-cache:/cache
Image=ghcr.io/immich-app/immich-machine-learning:release
Volume=model-cache.volume:/cache
Network=immich-network.network
[Service]
Restart=always

View File

@ -4,12 +4,14 @@ Requires=redis.service database.service
[Container]
ContainerName=immich_microservices
HostName=immich_microservices
EnvironmentFile=.env
Exec=start.sh microservices
Image=ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
Image=ghcr.io/immich-app/immich-server:release
AutoUpdate=registry
Volume=${UPLOAD_LOCATION}:/usr/src/app/upload
Volume=uploads.volume:/usr/src/app/upload
Volume=/etc/localtime:/etc/localtime:ro
Network=immich-network.network
[Service]
Restart=always

View File

@ -0,0 +1,5 @@
[Unit]
Description=Immich Container Network
[Network]
Label=app=immich

View File

@ -4,13 +4,15 @@ Requires=redis.service database.service
[Container]
ContainerName=immich_server
HostName=immich_server
EnvironmentFile=.env
Exec=start.sh immich
Image=ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
Image=ghcr.io/immich-app/immich-server:release
AutoUpdate=registry
PublishPort=2283:3001
Volume=${UPLOAD_LOCATION}:/usr/src/app/upload
Volume=uploads.volume:/usr/src/app/upload
Volume=/etc/localtime:/etc/localtime:ro
Network=immich-network.network
[Service]
Restart=always

View File

@ -0,0 +1,3 @@
# model-cache.volume
[Volume]
Driver=local

View File

@ -1,7 +1,9 @@
# redis.container
[Container]
ContainerName=immich_redis
HostName=immich_redis
Image=redis:6.2-alpine@sha256:51d6c56749a4243096327e3fb964a48ed92254357108449cb6e23999c37773c5
Network=immich-network.network
[Service]
Restart=always

3
immich/uploads.volume Normal file
View File

@ -0,0 +1,3 @@
# uploads.volume
[Volume]
Driver=local