68 lines
1.7 KiB
YAML
68 lines
1.7 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@sha256:546304417feac0874c3dd576e0952c6bb8f06bb4093ea0c9ca303c73cf458f63
|
|
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@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23
|
|
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"
|