title: how to add "Phpmyadmin" to laravel sail (docker + laravel) - auto: answer
body: <ul>
  <li><p><strong>This is your docker-compose file</strong></p>
  </li>
  <li><p>to add &quot;Phpmyadmin&quot; you just have to the following commands that I will leave in &quot;answer&quot;</p>
  <h1>For more information: <a href="https://laravel.com/docs/sail" rel="nofollow noreferrer">https://laravel.com/docs/sail</a></h1>
  <pre><code>  version: &quot;3&quot;
    services:
        laravel.test:
            build:
                context: ./vendor/laravel/sail/runtimes/8.0
                dockerfile: Dockerfile
                args:
                    WWWGROUP: &quot;${WWWGROUP}&quot;
            image: sail-8.0/app
            ports:
                - &quot;${APP_PORT:-80}:80&quot;
            environment:
                WWWUSER: &quot;${WWWUSER}&quot;
                LARAVEL_SAIL: 1
            volumes:
                - &quot;.:/var/www/html&quot;
            networks:
                - sail
            depends_on:
                - mysql
        mysql:
            image: &quot;mysql:8.0&quot;
            ports:
                - &quot;${FORWARD_DB_PORT:-3306}:3306&quot;
            environment:
                MYSQL_ROOT_PASSWORD: &quot;${DB_PASSWORD}&quot;
                MYSQL_DATABASE: &quot;${DB_DATABASE}&quot;
                MYSQL_USER: &quot;${DB_USERNAME}&quot;
                MYSQL_PASSWORD: &quot;${DB_PASSWORD}&quot;
                MYSQL_ALLOW_EMPTY_PASSWORD: &quot;yes&quot;
            volumes:
                - &quot;sailmysql:/var/lib/mysql&quot;
            networks:
                - sail
            healthcheck:
                test: [&quot;CMD&quot;, &quot;mysqladmin&quot;, &quot;ping&quot;, &quot;-p${DB_PASSWORD}&quot;]
                retries: 3
                timeout: 5s
  
    networks:
        sail:
            driver: bridge
    volumes:
        sailmysql:
            driver: local
  </code></pre>
  </li>
  <li><p>I hope I have helped, since I realized that there is not much information on this, (at least not clearly)...</p>
  </li>
  </ul>