Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phpmyadmin:fpm docker #425

Open
sup3r93 opened this issue Aug 30, 2023 · 5 comments
Open

phpmyadmin:fpm docker #425

sup3r93 opened this issue Aug 30, 2023 · 5 comments
Labels
discussion A discussion

Comments

@sup3r93
Copy link

sup3r93 commented Aug 30, 2023

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
Copy link
Member

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

@williamdes williamdes added the discussion A discussion label Aug 31, 2023
@sup3r93
Copy link
Author

sup3r93 commented Sep 1, 2023

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

@williamdes
Copy link
Member

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)

@sup3r93
Copy link
Author

sup3r93 commented Sep 3, 2023

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion A discussion
Projects
None yet
Development

No branches or pull requests

2 participants