services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:release environment: DB_HOSTNAME: immich_postgres DB_PASSWORD: ${IMMICH_DB_PASSWORD} DB_USERNAME: postgres DB_DATABASE_NAME: immich REDIS_HOSTNAME: immich_redis volumes: - ${IMMICH_UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro - ${CONFIG_ROOT:-.}/immich/healthcheck:/healthcheck ports: - 2283:2283 depends_on: - immich-redis - immich-database restart: always labels: - traefik.enable=true - traefik.http.routers.immich.rule=Host(`immich.xxxx.xxx`) - traefik.http.routers.immich.tls=true - traefik.http.routers.immich.tls.certresolver=myresolver - traefik.http.services.immich.loadbalancer.server.port=2283 profiles: - immich immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:release volumes: - immich-model-cache:/cache restart: always profiles: - immich immich-redis: container_name: immich_redis image: registry.hub.docker.com/library/redis:6.2-alpine@sha256:905c4ee67b8e0aa955331960d2aa745781e6bd89afc44a8584bfd13bc890f0ae restart: always healthcheck: test: redis-cli ping || exit 1 profiles: - immich immich-database: container_name: immich_postgres image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0 environment: POSTGRES_PASSWORD: ${IMMICH_DB_PASSWORD} POSTGRES_USER: postgres POSTGRES_DB: immich POSTGRES_INITDB_ARGS: '--data-checksums' DB_STORAGE_TYPE: 'HDD' volumes: - ${CONFIG_ROOT:-.}/immich/postgresql:/var/lib/postgresql/data restart: always profiles: - immich volumes: immich-model-cache: