• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Setting Docker wildfly container for domain

SeScDe

New Pleskian
Hey guys,

I hope somebody could help me, please. I use Plesk Onyx with Docker on Ubuntu 16. I installed wildfly image via Plesk Docker and started wildfly container and disabled automatic port mapping. Source Port is set and fixed to 8080 (from Plesk?) and having target port set to 32123

Now I go to Website & Domains, select my domain "example.com", clicking on Proxy rules, click add.
URL: example.com
Container: wildfly
Port (only thing I can choose): 8080->32123

But if I open http://example.com Port: 8080 I get the tomcat "it works" page. If I open http://example.com I get the Plesk default page. If I open http://example.com:32123 I get WILDFLY landing page.

What I like to have:
If I open http://example.com I should point to Wildfly showing up wildfly landing page!

How to solve my problem? For me it seems, that plesk does not follow the implemented rule because I can't see any changes after setting the rule.
 
Hi,
I guess docker register with this, free register moslty effect also if you can use terminal command via this / docker run -it jboss/wildfly / i installed myself on localhost i didnt get any error with centos 7 up to you but some unit packages i mean linux make me sick too.. i hope did you get backup
 
@SeScDe, deploy container, set up static port mapping (e.g. to 32123). Then go to domain > Apache & nginx Settings and (assuming you're using nginx) do the following:
  1. Deselect "Proxy mode" and make sure no checkboxes in nginx settings block are selected. Click Apply.
  2. Then paste into "Additional nginx directives" configuration to proxy to Docker and click OK:
    Code:
    location / {
            proxy_pass http://127.0.0.1:32123;
            proxy_set_header Host             $host;
            proxy_set_header X-Real-IP        $remote_addr;
            proxy_set_header X-Forwarded-For  $proxy_add_x_forwarded_for;
    }
Viola!
 
Back
Top