version: "3" services: immich_server: container_name: immich-server image: ghcr.io/immich-app/immich-server:release command: [ "start.sh", "immich" ] environment: - DB_HOSTNAME=immich-postgres - DB_USERNAME= - DB_PASSWORD= - DB_DATABASE_NAME=immich - REDIS_HOSTNAME=immich-redis volumes: - /Photos:/usr/src/app/upload networks: - immich ports: - 2283:3001 depends_on: - redis - database restart: unless-stopped immich_microservices: container_name: immich-microservices image: ghcr.io/immich-app/immich-server:release command: [ "start.sh", "microservices" ] environment: - DB_HOSTNAME=immich-postgres - DB_USERNAME= - DB_PASSWORD= - DB_DATABASE_NAME=immich - REDIS_HOSTNAME=immich-redis volumes: - /Photos:/usr/src/app/upload networks: - immich depends_on: - redis - database restart: unless-stopped immich_ml: container_name: immich-ml image: ghcr.io/immich-app/immich-machine-learning:release volumes: - /immich/model-cache:/cache networks: - immich restart: unless-stopped redis: container_name: immich-redis image: redis:6.2-alpine@sha256:51d6c56749a4243096327e3fb964a48ed92254357108449cb6e23999c37773c5 networks: - immich restart: unless-stopped database: container_name: immich-postgres image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0 environment: POSTGRES_PASSWORD: POSTGRES_USER: POSTGRES_DB: volumes: - /immich/postgres:/var/lib/postgresql/data networks: - immich restart: unless-stopped networks: immich: name: immich ipam: config: - subnet: