Reputation: 113
When running wordpress with podman-compose, I have the issue that when trying to run a wordpress network upgrade via the web interface, I get the following error:
Error: cURL error 7: Failed to connect to mydomain.tld port 443
It's apparently not possible to connect to its own domain within the container due to network configuration issues.
Upvotes: 0
Views: 102
Reputation: 113
With podman 5.3, the default network application changed from slirp4netns
to pasta
. With this came changes to the networking configuration.
For this to work again, you have to add a block extra_hosts
in your docker-compose.yml
file:
services:
wordpress:
image: wordpress:6
[...]
extra_hosts:
- "mydomain.tld:host-gateway"
Add as many domains as necessary, so it is able to connect to itself via the fully-qualified domain.
See the podman blog post for more details. Also, see the --add-host
param and its meaning behind this configuration in the docs.
Upvotes: 0