version: '3.8' name: immich services: immich-redis: container_name: immich-redis image: redis:7-alpine volumes: - broker:/data healthcheck: test: redis-cli ping || exit 1 networks: - immichnet restart: unless-stopped immich-postgres: container_name: immich-postgres image: tensorchord/pgvecto-rs:pg15-v0.2.0 environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} POSTGRES_INITDB_ARGS: '--data-checksums' REDIS_HOSTNAME: immich-redis REDIS_PORT: 6379 volumes: - pgdata:/var/lib/postgresql/data healthcheck: test: pg_isready --dbname='immich' --username='postgres' || exit 1; Chksum="$$(psql --dbname='immich' --username='postgres' --tuples-only --no-align --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')"; echo "checksum failure count is $$Chksum"; [ "$$Chksum" = '0' ] || exit 1 interval: 5m start_period: 5m #command: ["postgres", "-c" ,"shared_preload_libraries=vectors.so", "-c", 'search_path="$$user", public, vectors', "-c", "logging_collector=on", "-c", "max_wal_size=2GB", "-c", "shared_buffers=512MB", "-c", "wal_compression=on"] networks: - immichnet restart: unless-stopped immich-machine-learning: container_name: immich-machine-learning # For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag. # Example tag: release-cuda image: altran1502/immich-machine-learning:release # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration # file: hwaccel.ml.yml # service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable environment: DB_HOSTNAME: immich-postgres DB_DATABASE_NAME: ${DB_DATABASE_NAME} DB_USERNAME: ${DB_USERNAME} DB_PASSWORD: ${DB_PASSWORD} REDIS_HOSTNAME: immich-redis REDIS_PORT: 6379 volumes: - model_cache:/cache networks: - immichnet restart: unless-stopped immich-server: container_name: immich-server image: altran1502/immich-server:release environment: DB_HOSTNAME: immich-postgres DB_DATABASE_NAME: ${DB_DATABASE_NAME} DB_USERNAME: ${DB_USERNAME} DB_PASSWORD: ${DB_PASSWORD} MACHINE_LEARNING_WORKER_TIMEOUT: 600 REDIS_HOSTNAME: immich-redis REDIS_PORT: 6379 IMMICH_IGNORE_MOUNT_CHECK_ERRORS: true volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload/thumbs ports: - 2283:2283 depends_on: - immich-redis - immich-postgres - immich-machine-learning networks: - immichnet restart: unless-stopped volumes: broker: pgdata: model_cache: networks: immichnet: name: immichnet driver: bridge