networks: immich_network: name: immich_network services: redis: container_name: immich_redis image: docker.io/redis:6.2-alpine@sha256:905c4ee67b8e0aa955331960d2aa745781e6bd89afc44a8584bfd13bc890f0ae restart: always healthcheck: test: ["CMD", "redis-cli", "ping"] networks: - immich_network database: container_name: immich_postgres image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0 restart: always environment: POSTGRES_DB: immich POSTGRES_INITDB_ARGS: --data-checksums POSTGRES_PASSWORD: postgres POSTGRES_USER: postgres volumes: - /app-config/database:/var/lib/postgresql/data networks: - immich_network immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:release-cuda restart: always healthcheck: disable: false environment: POSTGRES_DB: immich POSTGRES_INITDB_ARGS: --data-checksums POSTGRES_PASSWORD: postgres POSTGRES_USER: postgres MACHINE_LEARNING_MODEL_INTRA_OP_THREADS: 2 NVIDIA_VISIBLE_DEVICES: all NVIDIA_DRIVER_CAPABILITIES: all volumes: - /dev/bus/usb:/dev/bus/usb - /app-config/cache:/cache networks: - immich_network deploy: resources: reservations: devices: - driver: nvidia count: all # oder 1 capabilities: [gpu] immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:release restart: always user: "1000:1000" group_add: - 1000 depends_on: - redis - database healthcheck: disable: false environment: POSTGRES_DB: immich POSTGRES_INITDB_ARGS: --data-checksums POSTGRES_PASSWORD: postgres POSTGRES_USER: postgres PUID: 1000 PGID: 1000 NVIDIA_VISIBLE_DEVICES: all NVIDIA_DRIVER_CAPABILITIES: all ports: - "2283:2283" volumes: - /storagebox:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro networks: - immich_network deploy: resources: reservations: devices: - driver: nvidia count: all # oder 1 capabilities: [gpu]