docker icon indicating copy to clipboard operation
docker copied to clipboard

phpmyadmin:fpm docker

Open sup3r93 opened this issue 1 year ago • 5 comments

HI, I'm trying to install "phpmyadmin:fpm" I already have the two containers Apache2: "apache2-container" MySQL: "some-mysql" How can I install phpmyadmin:fpm and link it to the two existing containers?

sup3r93 avatar Aug 30 '23 23:08 sup3r93

Hi, one of the real questions is why do you need the fpm variant if you use the apache2 one?

williamdes avatar Aug 31 '23 08:08 williamdes

Hi, one of the real questions is why do you need the fpm variant if you use the apache2 one?

If I'm not mistaken in the "ubuntu/apache2" module, PHP is not included, or do you recommend installing it there? Because I had in mind to create these containers, tell me what you think:

  • apache2
  • php
  • MySQL
  • PhpMyAdmin
  • NextCloud (I put it in a separate container or I use the Apache2 one, I don't want to create a big one which then runs slowly)
  • Debian

More than anything else I have the domain on Cloudflare with SSL (strick), so I need to connect the SSL certificate to the 443 connection, which I managed to do without problems on Apache2

sup3r93 avatar Sep 01 '23 11:09 sup3r93

If I'm not mistaken in the "ubuntu/apache2" module, PHP is not included, or do you recommend installing it there? Because I had in mind to create these containers, tell me what you think:

PHP is included, you need nothing else than the Apache2 variant to have phpMyAdmin running.

You should need:

  • MySQL or MariaDB
  • phpMyAdmin (apache2)
  • NextCloud (that's up to you and out of our scope)

About the HTTPS/SSL you will need to custom the image as we do not support this out of the box for now: https://github.com/phpmyadmin/docker/issues/414 (will help you with a working example)

williamdes avatar Sep 02 '23 08:09 williamdes

If I'm not mistaken in the "ubuntu/apache2" module, PHP is not included, or do you recommend installing it there? Because I had in mind to create these containers, tell me what you think:

PHP is included, you need nothing else than the Apache2 variant to have phpMyAdmin running.

You should need:

  • MySQL or MariaDB
  • phpMyAdmin (apache2)
  • NextCloud (that's up to you and out of our scope)

About the HTTPS/SSL you will need to custom the image as we do not support this out of the box for now: #414 (will help you with a working example)

ok, so I just install phpmyadmin through this command, and it connects itself to the apache2 container right? Can you confirm that the FPM version is fine?

docker run --name phpmyadmin -d --link mysql_db_server:db -p 8080:80 phpmyadmin

sup3r93 avatar Sep 03 '23 09:09 sup3r93

ok, so I just install phpmyadmin through this command, and it connects itself to the apache2 container right? Can you confirm that the FPM version is fine?

The fpm version is probably not what you want, the best is to stick to the apache2 one because everything is included.

The Docker command with "links" only creates a network between nodes. The container does not connect itself to anything until you go to the login page on your web browser. It is the code inside the container that connects while you are browsing phpMyAdmin.

Can you share your docker compose file? Or if you do not have one, the best for you is to use a Docker compose file

williamdes avatar Sep 21 '23 07:09 williamdes