Files
homelab/stacks/media/immich.yaml
2026-02-25 00:48:06 +03:00

68 lines
1.6 KiB
YAML

services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-v2}
volumes:
- /srv/media/immich:/data
- /etc/localtime:/etc/localtime:ro
env_file:
- ./immich.env
ports:
- "2283:2283"
depends_on:
- immich-redis
- immich-postgres
restart: unless-stopped
healthcheck:
disable: false
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
immich-machine-learning:
container_name: immich_machine_learning
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-v2}
volumes:
- /srv/homelab/data/media/immich/model-cache:/cache
env_file:
- ./immich.env
restart: unless-stopped
healthcheck:
disable: false
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
immich-redis:
container_name: immich_redis
image: docker.io/valkey/valkey:9
healthcheck:
test: redis-cli ping || exit 1
restart: unless-stopped
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
immich-postgres:
container_name: immich_postgres
image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0
env_file:
- ./immich.env
shm_size: 128mb
volumes:
- /srv/homelab/data/media/immich/postgres:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
disable: false
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"