• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Docker Proxy for a LAMP container

super_tron

New Pleskian
Hi,

I have one large legacy application that no one has the time and money to rewrite. It is behind authentification and not a security risk. Now I run newest Plesk but need to have PHP 5.6 in a LAMP stack.

So I try it with this docker image or similar: jakejarvis/docker-lamp-php5
It works well, but when I disable automatically assign ports I cannot select the application in the "Docker Proxy" form.

The container exposes Port 80 and Port 3306 standardports and I simply wanted to serve this on a separate domain.

The problem is exactly this one here: Not possible to add Docker Proxy rules, no container is displayed
But the solution from that discussion to expose the ports is already realized in this docker container.

"Looks like the container you using has "Expose" option. Docker image used to deploy the container does not have "Expose" option or the required port is not exposed.
Plesk allows mapping ports that are exposed only."


Does anyone please know what to do or can recommend another docker container, that does what I need.
 
Then I tried this image: phpdockerio/php56-fpm
Here the selection works, I would like to know the difference.

However it is still not possible to route the service to Port 80 or 443 because that ports are already taken.
When I route it to 8080 I only get an error, but this error might be a problem in the docker image.

Is it at all possible to have a LAMP dockerimage routed to 80/443?
Which image do you suggest and how to do it?
 
Back
Top