name: immich services: immich-server: image: "{{ immich_server_image }}:${IMMICH_VERSION:-{{ immich_version }}}" container_name: immich_server restart: always depends_on: - redis - database env_file: - .env volumes: - "${UPLOAD_LOCATION}:/data" - /etc/localtime:/etc/localtime:ro ports: - "127.0.0.1:{{ immich_host_http_port }}:{{ immich_container_http_port }}" healthcheck: disable: false networks: - immich immich-machine-learning: image: "{{ immich_machine_learning_image }}:${IMMICH_VERSION:-{{ immich_version }}}" container_name: immich_machine_learning restart: always env_file: - .env volumes: - "{{ immich_model_cache_path }}:/cache" healthcheck: disable: false networks: - immich redis: image: "{{ immich_redis_image }}" container_name: immich_redis restart: always healthcheck: test: redis-cli ping || exit 1 networks: - immich database: image: "{{ immich_postgres_image }}" container_name: immich_postgres restart: always environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} POSTGRES_INITDB_ARGS: "--data-checksums" volumes: - "${DB_DATA_LOCATION}:/var/lib/postgresql/data" shm_size: 128mb healthcheck: disable: false networks: - immich networks: immich: name: immich