Adds immich, puts redis/database on NVME, uses postgres for wallabag and nextcloud, adds backup services

This commit is contained in:
2025-11-15 08:56:05 +01:00
parent 7b21388adc
commit e552750f66
36 changed files with 158 additions and 81 deletions

View File

@@ -5,11 +5,11 @@ Description=Immich database container
AutoUpdate=registry
ContainerName=immich-database
Environment=DB_STORAGE_TYPE=HDD
Environment=POSTGRES_USER=postgres
Environment=POSTGRES_USER=immich
Environment=POSTGRES_DB=immich
Environment=POSTGRES_INTIDB_ARGS=--data-checksums
Environment=TZ=Europe/Zurich
HealthCmd=pg_isready -U postgres
HealthCmd=pg_isready -U immich
HealthInterval=30s
HealthTimeout=10s
HealthRetries=5
@@ -20,6 +20,7 @@ ShmSize=128m
StartWithPod=true
Timezone=Europe/Zurich
Volume=immich-database.volume:/var/lib/postgresql/data
Volume=/var/mnt/nas/containers/immich/storage/database-backup:/backup
[Service]
Restart=always

View File

@@ -1,7 +1,2 @@
[Volume]
Copy=true
Device=/var/mnt/nas/containers/immich/storage/database
Driver=local
Options=bind
Type=none
VolumeName=immich-database

View File

@@ -1,7 +1,2 @@
[Volume]
Copy=true
Device=/var/mnt/nas/containers/immich/storage/ml-cache
Driver=local
Options=bind
Type=none
VolumeName=immich-ml-cache

View File

@@ -9,7 +9,7 @@ Requires=immich-redis.container
AutoUpdate=registry
ContainerName=immich
Environment=DB_DATA_LOCATION=./postgres
Environment=DB_USERNAME=postgres
Environment=DB_USERNAME=immich
Environment=DB_DATABASE_NAME=immich
Environment=IMMICH_VERSION=v2
Environment=TZ=Europe/Zurich