NPM does not route to Wordpress Site #3743
Replies: 5 comments 7 replies
-
Exact same issue here, Spent 2 days now trying to solve it. Various suggestions online re making new bridge network and shoving all containers in it, and then instead of specifying the IP addr, specify the wordpress container name. None of said suggestions work. I get the feeling that using this proxy manager to access other containers on the same host is simply not supported |
Beta Was this translation helpful? Give feedback.
-
Put the wordpress container on the same network as NPM and use the container name as the 'forward hostname' and 80 as the port. Docker resolves contanernames automatically within a network to the internal ips and communicates via the internal ports. |
Beta Was this translation helpful? Give feedback.
-
Having the same issue and not making headway. I put Drupal in a container and pointed port NPM at it on port 8088. (Works like a charm) |
Beta Was this translation helpful? Give feedback.
-
Sounds like the CSS is not being picked up correctly, or it cant pull
content from your database? Note that the likes of wp-config.php should be
within a folder thats mounted. Bind mount or volume. You can edit the files
within via your host as well as via the running image.
I assume this is an empty (default) wordpress to begin with. This is the
best way - start empty then import an existing site (if any).
…On Mon, 31 Mar 2025, 23:23 thommonz, ***@***.***> wrote:
Thanks for that suggestion. It's several steps closer, but still not the
solution for me.
Point of note for any other following this thread/discussion is that in
order to edit the wp-config.php (using Portainer) is to start the Wordpress
container, open a console, run 'apt update' the 'apt install nano' or (some
such other editor) - then edit the file and restart the container!
So, having followed the advice provided above, things appear to be working
however the Wordpress site is not displaying correctly (pages are shown as
text).
—
Reply to this email directly, view it on GitHub
<#3743 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIJOF6BDWGLJHXSBZ6QTX3T2XHE6TAVCNFSM6AAAAABUKHZXU2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENRYGE4DENA>
.
You are receiving this because you commented.Message ID:
<NginxProxyManager/nginx-proxy-manager/repo-discussions/3743/comments/12681824
@github.com>
|
Beta Was this translation helpful? Give feedback.
-
Solved! Using Portainer in order to have a graphic interface with Docker, This will create a custom application template. Fill in the required Title and Description and edit changes to the docker compose file. Security Note: This may not be the wisest way to set up users and password. For me, this application sits on a firewalled device and is only there to run a couple of light applications. Deploying the stack creates a couple of containers. Initially I had to check the log files of the DB container to ensure the database was running before being concerned with the Wordpress one. (Another learning for me is that I'm picking that this will ensure the database container is available BEFORE the wordpress one as a dependency of sorts... IDK but makes sense that after a reboot of the host machine, they will come up in order.) Then edit the configuration of the Wordpress container to port map my host port of 8080 to 80 in the container. Test that 192.168.x.x:8080 loads the Wordpress install and then point the NPM proxy host to 192.168.x.x on port 8080 for the domain and in the TLS menu, set Force HTTPS to On. Open a browser and go to the domain and finish the Wordpress install! Many thanks for the ideas - point of clarity is that the issue is NOT with NPM, rather with Wordpress and how its installed in Docker. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I have a Proxmox server running on which one instance contains an NPM in Docker. Another instance contains Wordpress in a Docker container.
There are already several domains that reach out to me on different services.
However, I have the problem that I cannot reach my Wordpress instance externally.
Internally it works. when i open http://192.168.1.230:8080
the domain kunst.datenreich.eu points to my NPM. This is configured as follows:
If I call the Ip internally, the website call works.
When I call kunst.datenreich.eu the url is exchanged as follows: https://kunst.datenreich.eu:8080 and the following site is displayed:
Does anyone here know what else I can do to make the website accessible?
unfortunately i have only found a few posts so far and no solution to my problem
Beta Was this translation helpful? Give feedback.
All reactions