Auto start container mit 3 images and 2 volumes

Hallo
I have this images
vtiger-php-apache
mariadb
phpmyadmin

it has this compose.yaml:

services:
  php-apache:
    build:
      context: .
      dockerfile: Dockerfile
    restart: always
    volumes:
      - Vtiger_web:/var/www/html  # Source auf den Container mounten
    ports:
      - "80:80"            # Apache auf Port 80 verfügbar machen
    depends_on:
      - db
        condition: service_healthy

  db:
    image: mariadb:latest
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: vtiger
      MYSQL_DATABASE: vtiger
      MYSQL_USER: vtiger
      MYSQL_PASSWORD: vtiger
    volumes:
      - Vtiger_db:/var/lib/mysql

  phpmyadmin:
    image: phpmyadmin:latest
    restart: always
    depends_on:
      - db
    ports:
      - "8081:80"           # phpMyAdmin auf Port 8081 verfügbar machen
    environment:
      PMA_HOST: db          # Name des Datenbank-Containers
      PMA_USER: vtiger      # Benutzername aus db-Service
      PMA_PASSWORD: vtiger  # Passwort aus db-Service
      UPLOAD_LIMIT: 64M     # Optional: Upload-Limit für SQL-Dateien


volumes:
  Vtiger_db:
  Vtiger_web:

The mariadb and phpmyadmin starts when windows starts.
but the vtiger-php-apache has to be started by hand.
when we start the container in docker desktop by hand it run with no problems

I have tried many things but cannot find why it will not start after reboot.

this doesn’t look right. it should be:

    depends_on:
      db:
        condition: service_healthy

I assume this is a copy/paste error, as I would expect docker compose to complain about invalid syntax. Since all service use restart:alway, I would expect all container to start as soon as Docker Desktop is starting. What’s the output of docker ps -a --no-trunc when the computer is started, but the container is not?

Furthermore, I assume you are aware that Docker Desktop is designed to be a developer tool to increase developer productivity. It is not designed to be used as a 24/7 operating server.

    volumes:
      - Vtiger_web:/var/www/html  # Source auf den Container mounten

You are mounting a Docker volume into the container. How do you place your application files in there?