I have the following docker compose file:
version: "3.9"
services:
  php:
    image: phpimage
    ports:
      - 80:80
  phpmyadmin:
    image: phpmyadminimage
    ports:
      - "8080:80"
    environment:
      - PMA_HOST=mysql
  mysql:
    image: mysqlimage
    command: mysqld --sql_mode="NO_ENGINE_SUBSTITUTION"
And everything works fine. The one thing that annoys me though is that when I access phpmyadmin through the browser, I need to go to http://localhost:8080.
Is there anyway I can set up an apache rule, so that instead of the above I can simply enter http://localhost/phpmyadmin?
I've been messing about with redirects and reverse proxies but not got anything to work yet
Update:- I've been trying stuff like this:
<VirtualHost *:80>
  ServerName localhost/phpmyadmin
  ProxyPass / http://phpmyadmin
  ProxyPassReverse / http://phpmyadmin
</VirtualHost>