name: immich services: database: cpu_shares: 90 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 container_name: immich-postgres deploy: resources: limits: memory: "16663969792" environment: POSTGRES_DB: immich POSTGRES_INITDB_ARGS: --data-checksums POSTGRES_PASSWORD: postgres POSTGRES_USER: postgres hostname: immich-postgres healthcheck: test: - CMD-SHELL - 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: 5m0s start_period: 5m0s start_interval: 30s image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:739cdd626151ff1f796dc95a6591b55a714f341c737e27f045019ceabf8e8c52 labels: icon: https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Immich/icon.png networks: immich: null restart: unless-stopped volumes: - type: bind source: /DATA/AppData/immich/pgdata target: /var/lib/postgresql/data bind: create_host_path: true immich-machine-learning: cpu_shares: 90 container_name: immich-machine-learning deploy: resources: limits: memory: "16663969792" environment: DB_DATABASE_NAME: immich DB_PASSWORD: postgres DB_USERNAME: postgres hostname: immich-machine-learning healthcheck: {} image: altran1502/immich-machine-learning:v1.129.0 labels: icon: https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Immich/icon.png networks: immich: null restart: unless-stopped volumes: - type: bind source: /DATA/AppData/immich/model-cache target: /cache bind: create_host_path: true immich-server: cpu_shares: 90 container_name: immich-server depends_on: database: condition: service_started required: true redis: condition: service_started required: true deploy: resources: limits: memory: "16663969792" reservations: memory: "1073741824" environment: DB_DATABASE_NAME: immich DB_PASSWORD: postgres DB_USERNAME: postgres hostname: immich-server healthcheck: {} image: altran1502/immich-server:v1.129.0 labels: icon: https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Immich/icon.png networks: immich: null ports: - mode: ingress target: 2283 published: "2283" protocol: tcp restart: unless-stopped volumes: - type: bind source: /media/sdb-ata-TOSHIBA_MK5059GS/Gallery/immich target: /usr/src/app/upload bind: create_host_path: true - type: bind source: /etc/localtime target: /etc/localtime read_only: true bind: create_host_path: true redis: cpu_shares: 90 container_name: immich-redis deploy: resources: limits: memory: "16663969792" hostname: immich-redis healthcheck: test: - CMD-SHELL - redis-cli ping || exit 1 image: docker.io/redis:6.2-alpine@sha256:148bb5411c184abd288d9aaed139c98123eeb8824c5d3fce03cf721db58066d8 labels: icon: https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Immich/icon.png networks: immich: null restart: unless-stopped volumes: - type: bind source: /DATA/AppData/immich/redis target: /data bind: create_host_path: true networks: default: name: immich_default immich: name: immich