services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:v2.2.0 volumes: - ${UPLOAD_LOCATION}:/data - /etc/localtime:/etc/localtime:ro depends_on: - redis - database restart: always networks: - cnetwork immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:v2.2.0 volumes: - ./model-cache:/cache restart: always networks: - cnetwork redis: container_name: immich_redis image: docker.io/valkey/valkey:8-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571 restart: always healthcheck: test: redis-cli ping || exit 1 networks: - cnetwork database: container_name: immich_postgres image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:41eacbe83eca995561fe43814fd4891e16e39632806253848efaf04d3c8a8b84 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 networks: - cnetwork networks: cnetwork: external: true