services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:v2.0.1 volumes: - ${UPLOAD_LOCATION}:/data - /etc/localtime:/etc/localtime:ro env_file: - .env environment: DB_HOSTNAME: shared-postgres DB_PORT: 5432 DB_USERNAME: ${IMMICH_POSTGRES_USER} DB_PASSWORD: ${IMMICH_POSTGRES_PASSWORD} DB_DATABASE_NAME: ${IMMICH_POSTGRES_DB} ports: - '2283:2283' depends_on: shared-postgres: condition: service_healthy redis: condition: service_started restart: always networks: - postgres-network immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:v2.0.1 volumes: - model-cache:/cache env_file: - .env restart: always redis: container_name: immich_redis image: docker.io/redis:7.4-alpine@sha256:1bf97f21f01b0e7bd4b7b34a26d3b9d8086e41e70c10f262e8a9e0b49b5116a0 healthcheck: test: redis-cli ping || exit 1 restart: always volumes: model-cache: networks: postgres-network: external: true