Failed loading environment

Failed loading environment
The environment named primary is unreachable.

portainer does not work after reboot umbrel

Error:
2025/03/07 02:27PM WRN github.com/portainer/portainer-ee/api/docker/local.go:83 > failed to clean up updater stack | error=“failed to list containers: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?” retry time=0

To me succeeded fix this problem by removing docker dind from docker-compose and connect docker.sock directly

After reboot now good working

Maybe someone also come in handy

fixed docker-compose.yml

version: '3.7'
services:
  app_proxy:
    environment:
      APP_HOST: portainer_portainer_1
      APP_PORT: 9000
    container_name: portainer_app_proxy_1

  portainer:
    image: portainer/portainer-ee
    command: '--host unix:///var/run/docker.sock --admin-password-file=/default-password'
    restart: on-failure
    volumes:
      - ${APP_DATA_DIR}/default-password:/default-password
      - ${APP_DATA_DIR}/data/portainer:/data
      - /var/run/docker.sock:/var/run/docker.sock
    container_name: portainer_portainer_1

If someone using Community Edition replace image portainer/portainer-ee on portainer/portainer-ce