version: "3.8" name: immich services: immich-server: logging: driver: "journald" options: tag: "immich-server" container_name: immich_server image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} env_file: - .env volumes: - ${IMMICH_LOCATION}/library/upload:/data/upload - ${IMMICH_LOCATION}/library:/data/library - ${ENCODED_VIDEO_LOCATION}:/data/encoded-video - ${THUMB_LOCATION}:/data/thumbs - ${IMMICH_LOCATION}/library/profile:/data/profile - ${BACKUPS_LOCATION}:/data/backups - /etc/localtime:/etc/localtime:ro ports: - "2283:2283" depends_on: - redis - database restart: always healthcheck: disable: false immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} volumes: - ${CACHE_LOCATION}:/cache env_file: - .env restart: always healthcheck: disable: false redis: container_name: immich_redis image: docker.io/valkey/valkey:8-bookworm@sha256:a137a2b60aca1a75130022d6bb96af423fefae4eb55faf395732db3544803280 healthcheck: test: redis-cli ping || exit 1 restart: always database: container_name: immich_postgres image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:32324a2f41df5de9efe1af166b7008c3f55646f8d0e00d9550c16c9822366b4a environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} POSTGRES_INITDB_ARGS: '--data-checksums' volumes: - ${DB_DATA_LOCATION}:/var/lib/postgresql/data shm_size: 128mb restart: always volumes: model-cache: