updated app templates
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
# Immich - Self-hosted Photo & Video Management
|
||||
# Domain: photos.${DOMAIN}
|
||||
# Database: PostgreSQL (with VectorChord) + Redis
|
||||
# RAM: ~4GB minimum | Pi-compatible: No (ML too heavy)
|
||||
# RAM: ~4GB minimum (mem_limit: 4096M total — server 2048M + ML 1536M + postgres 256M + redis 128M) | Pi-compatible: No (ML too heavy)
|
||||
#
|
||||
# Environment variables (set in Portainer):
|
||||
# Environment variables:
|
||||
# DOMAIN - Your domain (e.g., demo-felhom.eu)
|
||||
# HDD_PATH - HDD mount path (e.g., /mnt/hdd_1)
|
||||
# DB_PASSWORD - PostgreSQL password
|
||||
# DB_PASSWORD - PostgreSQL password (auto-generated)
|
||||
#
|
||||
# Storage layout:
|
||||
# User photos/videos → ${HDD_PATH}/storage/immich (HDD, host path)
|
||||
@@ -40,6 +40,10 @@ services:
|
||||
networks:
|
||||
- traefik-public
|
||||
- immich-internal
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 2048M
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--spider", "-q", "http://localhost:2283/api/server/ping"]
|
||||
interval: 30s
|
||||
@@ -65,6 +69,10 @@ services:
|
||||
- immich_ml_cache:/cache
|
||||
networks:
|
||||
- immich-internal
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 1536M
|
||||
healthcheck:
|
||||
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:3003/ping')"]
|
||||
interval: 30s
|
||||
@@ -81,10 +89,15 @@ services:
|
||||
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
||||
- POSTGRES_DB=immich
|
||||
- POSTGRES_INITDB_ARGS=--data-checksums
|
||||
- TZ=Europe/Budapest
|
||||
volumes:
|
||||
- immich_postgres_data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- immich-internal
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 256M
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U immich -d immich"]
|
||||
interval: 10s
|
||||
@@ -97,10 +110,16 @@ services:
|
||||
container_name: immich-redis
|
||||
restart: unless-stopped
|
||||
command: redis-server --appendonly yes
|
||||
environment:
|
||||
- TZ=Europe/Budapest
|
||||
volumes:
|
||||
- immich_redis_data:/data
|
||||
networks:
|
||||
- immich-internal
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 128M
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 10s
|
||||
@@ -115,4 +134,4 @@ volumes:
|
||||
networks:
|
||||
traefik-public:
|
||||
external: true
|
||||
immich-internal:
|
||||
immich-internal:
|
||||
|
||||
Reference in New Issue
Block a user