Phpmyadmin with mariadb using docker networks

Type: Suggestion
Description:
I want to query the mariadb using phpmyadmin.

https://docs.bitnami.com/aws/faq/get-started/access-phpmyadmin/
is confusing.

I found a better way of doing it here.

https://dev.to/maximization/install-mysql-with-phpmyadmin-using-docker-jn9

ie.
create a docker service in docker-compose under the same network.

ie.
We’re using version 3.7 of the Docker Compose file format
version: "3.7"

Define services/containers

    services:
      # MySQL container
      mysql:
        # Use mysql:8.0.19 image
        image: mysql:8.0.19
        # Connect to "my-network" network, as defined below
        networks:
          - my-network
        # Pass a list of environment variables to the container
        environment:
          MYSQL_ROOT_PASSWORD: my-secret-pw
      #phpMyAdmin container
      phpmyadmin:
        # Use phpmyadmin/phpmyadmin:5.0.2 image
        image: phpmyadmin/phpmyadmin:5.0.2
        # Connect to "my-network" network, as defined below
        networks:
          - my-network
        # Map port 8080 on the host to port 80 inside the container
        # Syntax is: "HOST_PORT:CONTAINER_PORT"
        ports:
          - "8080:80"
        # Pass a list of environment variables to the container
        environment:
          PMA_HOST: mysql
        # Wait for "mysql" container to start first 
        depends_on:
          - mysql

Define networks

    networks:
      my-network:

Hi @geeksupport,

thanks for using Bitnami, we help with containers in Github, Could you open a new issue there?
https://github.com/bitnami/bitnami-docker-mariadb/issues

Regards,
Ibone.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.