services: immich-server: image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} container_name: immich_server user: "1028:100" env_file: - .env ports: - "2283:2283" volumes: - ${UPLOAD_LOCATION}:/data - /home/ravin/immich/photos:/external - /etc/localtime:/etc/localtime:ro depends_on: - redis - database restart: always database: image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0 container_name: immich_postgres 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 redis: image: valkey/valkey:8-bookworm container_name: immich_redis healthcheck: test: redis-cli ping || exit 1 restart: always immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} volumes: - model-cache:/cache env_file: - .env restart: always healthcheck: disable: false volumes: model-cache: