title: Docker connect phpmyadmin to my MySQL Server
body: <p>Hello im trying to connect mysql to my phpmyadmin container how can i bind the mysql to this. is it also possible to change the port 8080 to /phpmyadmin im access to <a href="http://192.168.99.100:8080" rel="nofollow noreferrer">http://192.168.99.100:8080</a> so i get <a href="http://192.168.99.100/phpmyadmin" rel="nofollow noreferrer">http://192.168.99.100/phpmyadmin</a> instead of the container id </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>version: '2'
  services:
    #######################################
    # PHP application Docker container
    #######################################
    app:
      build:
        context: .
        dockerfile: Dockerfile
      links:
        - mysql
      ports:
        - "8000:80"
      volumes:
        - ./app/:/app/
        - ./:/docker/
      volumes_from:
        - storage
      networks:
        - php-network
  #######################################
  # MySQL server
  #######################################
    mysql:
      build:
        context: docker/mysql/
        dockerfile: MySQL-5.7.Dockerfile
      restart: always
      volumes_from:
        - storage
      env_file:
        - etc/environment.yml
      networks:
      - php-network
  #######################################
  # PHP MY ADMIN
  #######################################
    myphpadmin:
      build:
        context: docker/myphpadmin
        dockerfile: Dockerfile
      restart: always
      links:
      - mysql
      ports:
      - 8080:80
      environment:
      - PMA_ARBITRARY=1
      networks:
      - php-network
  
    storage:
      build:
        context: docker/storage/
      volumes:
        - /storage
  
  networks:
      php-network:
        driver: bridge</code></pre>
  </div>
  </div>
  </p>