phpmyadmin / docker

Docker container for phpMyAdmin
https://hub.docker.com/_/phpmyadmin
GNU General Public License v3.0
663 stars 453 forks source link

phpmyadmin:fpm docker #425

Open sup3r93 opened 1 year ago

sup3r93 commented 1 year ago

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?

williamdes commented 1 year ago

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

sup3r93 commented 1 year ago

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:

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

williamdes commented 1 year ago

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:

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)

sup3r93 commented 1 year ago

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

williamdes commented 1 year ago

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