Open EBS-DarkD opened 1 year ago
Hi
First you can remove MYSQL_ROOT_PASSWORD_FILE and it's secret config, we do not have any. The volume is not needed.
One simple example is https://github.com/phpmyadmin/docker/blob/272944cc5a10f7740acacbe2a35c2c1f6d9a98c7/testing/docker-compose/docker-compose.testing-one-host.yml#L25
You can use an arbitrary server config like this example: https://github.com/phpmyadmin/docker#usage-with-docker-compose-and-arbitrary-server
Or use PMA_HOST or PMA_HOSTS like in my first example
Where is your database server located? Edit: it's on another docker network So use the container name in PMA_HOST
I'm running portainer 2.19.0 and trying to get mariadb and phpmyadmin working together I'v got a stack setup with the following
I can access this via the portainer console and have logged into the mariadb, created some accounts and a database
For the phpmyadmin, i've got the following
With the config above, when I try access the web interface, I get the error
If I uncomment the volumes portion, the above error goes but then when I try login, I get the following
mysqli::real_connect(): (HY000/2002): No such file or directory
With the pma_arbitary set to '1', I'm expecting it to ask me for a server, but it doesn't get that far, I just get the username and password box If I set either the link or the PMA_HOST, I also get the real_connect error.
I've deleted all the config files, containers and images but I still can't get it to work. Anyone tell me what I've missed here?