services: redis: image: redis:6 container_name: immich_redis restart: always networks: - immich database: image: postgres:14 container_name: immich_db restart: always environment: POSTGRES_PASSWORD: postgres POSTGRES_USER: postgres POSTGRES_DB: immich volumes: - pgdata:/var/lib/postgresql/data networks: - immich immich-server: image: ghcr.io/immich-app/immich-server:release container_name: immich_server restart: always depends_on: - redis - database environment: DB_PASSWORD: postgres DB_USERNAME: postgres DB_DATABASE_NAME: immich DB_HOSTNAME: database REDIS_HOSTNAME: redis IMMICH_WEB_URL: https://bm.itfolks.co.uk labels: - "traefik.enable=true" - "traefik.http.routers.immich.rule=Host(bm.itfolks.co.uk)" - "traefik.http.routers.immich.entrypoints=websecure" - "traefik.http.routers.immich.tls.certresolver=myresolver" - "traefik.http.services.immich.loadbalancer.server.port=3001" networks: - immich - traefik immich-web: image: ghcr.io/immich-app/immich-web:release container_name: immich_web restart: always depends_on: - immich-server labels: - "traefik.enable=true" - "traefik.http.routers.immich-web.rule=Host(bm.itfolks.co.uk)" - "traefik.http.routers.immich-web.entrypoints=websecure" - "traefik.http.routers.immich-web.tls.certresolver=myresolver" - "traefik.http.services.immich-web.loadbalancer.server.port=3000" networks: - immich - traefik immich-machine-learning: container_name: immich_machine_learning # For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag. # Example tag: ${IMMICH_VERSION:-release}-cuda image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-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, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable volumes: - model-cache:/cache environment: DB_PASSWORD: postgres DB_USERNAME: postgres DB_DATABASE_NAME: immich DB_HOSTNAME: database REDIS_HOSTNAME: redis restart: always healthcheck: disable: false volumes: pgdata: model-cache: networks: immich: traefik: external: true