How can I install phpmyadmin into espocrm Docker

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • trungtvmso
    Member
    • Jun 2022
    • 70

    #1

    How can I install phpmyadmin into espocrm Docker

    I'm using EspoCRM Docker installed by script. I would like to ask also posts here my docker_compose.yml to get help from you guys.

    I'm new here also dont event know about the docker configuration. I'm trying to install phpmyadmin to manage my database.

    Here is my yml config, I dont know what I was wrong but I could not bring my phpmyadmin container online.

    Pls kindly help to correct my config.

    Thank you

    Attached Files
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9696

    #2
    I don't think it's the right place to get an answer about the phpmyadmin container. Maybe provide more input. Any errors?

    Comment

    • victor
      Active Community Member
      • Aug 2022
      • 1142

      #3
      trungtvmso,

      You can take the part about phpMyadmin from my docker-compose.yaml. The file is fully functional (I'm using it now).
      Attached Files

      Comment

      • trungtvmso
        Member
        • Jun 2022
        • 70

        #4
        Originally posted by victor
        trungtvmso,

        You can take the part about phpMyadmin from my docker-compose.yaml. The file is fully functional (I'm using it now).
        thank you for sharing, do I need to config anything else for nginx to run this container, bro? I'm new on everything so that I'm very sorry if my question were stupid

        Comment

        • victor
          Active Community Member
          • Aug 2022
          • 1142

          #5
          If you have everything working except phpMyAdmin, then just copy the part about espocrm-phpmyadmin into your docker-compose.yaml and specify the ports convenient for you:

          Click image for larger version

Name:	image.png
Views:	275
Size:	38.8 KB
ID:	104657

          Comment


          • victor
            victor commented
            Editing a comment
            - It's very important to stop all containers you have running via the "docker-compose down -v" command before editing docker-compose.yaml.
            - After that, make the changes I suggested in docker-compose.yaml and save the changes.
            - After saving the changes in docker-compose.yaml you need to build your container with "docker-compose up -d --build" or "docker-compose up -d --build "$@"".
        • trungtvmso
          Member
          • Jun 2022
          • 70

          #6
          Originally posted by victor
          If you have everything working except phpMyAdmin, then just copy the part about espocrm-phpmyadmin into your docker-compose.yaml and specify the ports convenient for you:

          Click image for larger version

Name:	image.png
Views:	275
Size:	38.8 KB
ID:	104657

          Thank you Victor, now I can access to phpmyadmin to control my database already.

          Thank you so much

          Comment

          • victor
            Active Community Member
            • Aug 2022
            • 1142

            #7
            Originally posted by trungtvmso
            I can access to phpmyadmin to control my database already.
            Let's take my proposed docker-compose.yaml as an example, and that your server's IP is 192.168.1.50.
            So, to login to your instance you need to use http://192.168.1.50:8582/. And to login phpMyAdmin, you need to use http://192.168.1.6:8583/.​

            Also you can use http://localhost:8582/ for instance and http://localhost:8583/ for phpMyAdmin.​​
            Last edited by victor; 05-17-2024, 09:06 AM.

            Comment

            • esforim
              Active Community Member
              • Jan 2020
              • 2225

              #8
              Thank you Victor. I use the default Compose from EspoCRM's documentation and added your myphpadmin setting; here is my edit for the future generation:

              Code:
              espocrm-phpmyadmin:
              image: phpmyadmin/phpmyadmin
              container_name: espocrm-phpmyadmin
              links:
              - espocrm-db
              environment:
              PMA_HOST: espocrm-db
              PMA_PORT: 3306
              PMA_ARBITRARY: 1
              restart: always
              ports:
              - 8583:80
              The only thing that was change was the Container name which is espocrm-db

              To log in I use the following (default information)

              Click image for larger version

Name:	image.png
Views:	0
Size:	50.0 KB
ID:	125044

              Comment


              • victor
                victor commented
                Editing a comment
                The documentation (for Docker installation) has recently been updated with a detailed description for EspoCRM files and for the database:https://docs.espocrm.com/administrat...nual-restore_1. It is designed specifically for Restore, but can also be used to migrate to a clean Docker installation. Don't forget about https://docs.espocrm.com/administrat...configurations.
                Last edited by victor; 03-02-2026, 09:45 AM.

              • esforim
                esforim commented
                Editing a comment
                Thank you victor. Problem is my web hosting I won't have the ability to use those command I think, since it is a 'shared hosting'.

                No way to do a "GET"?

              • victor
                victor commented
                Editing a comment
                esforim

                For EspoCRM it is better to use a VPS. Shared Hosting has a lot of limitations and most likely you will not be able to use some of the commands that will be specifically limited by the Shared Hosting provider.
            Working...