name: immich services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} restart: unless-stopped ports: - "2283:2283" volumes: - /srv/immich/library:/data - /etc/localtime:/etc/localtime:ro env_file: - .env depends_on: - redis - database healthcheck: disable: false immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} restart: unless-stopped volumes: - /srv/immich/models:/cache env_file: - .env healthcheck: disable: false redis: container_name: immich_redis image: docker.io/valkey/valkey:9 restart: unless-stopped healthcheck: test: redis-cli ping || exit 1 database: container_name: immich_postgres image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0 restart: unless-stopped environment: POSTGRES_USER: ${DB_USERNAME} POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_DB: ${DB_DATABASE_NAME} DB_STORAGE_TYPE: ${DB_STORAGE_TYPE:-SSD} volumes: - /srv/immich/postgres:/var/lib/postgresql/data healthcheck: test: pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" || exit 1 interval: 30s timeout: 5s retries: 5