services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} environment: - NODE_TLS_REJECT_UNAUTHORIZED=0 ports: - '127.0.0.1:2000:2283' volumes: - ./library:/data env_file: - .env depends_on: - redis - database healthcheck: disable: false restart: unless-stopped immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} volumes: - ./cache:/cache env_file: - .env healthcheck: disable: false restart: unless-stopped redis: container_name: immich_redis image: valkey/valkey:9-alpine healthcheck: test: redis-cli ping || exit 1 restart: unless-stopped database: container_name: immich_postgres image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0 env_file: - .env environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} POSTGRES_INITDB_ARGS: '--data-checksums' volumes: - ./schema:/var/lib/postgresql/data shm_size: 128mb restart: unless-stopped