Hi All,
I'm migrating a wordpress website to docker , I configured a docker-compose.yml with 2 services: wordpress and mysql.
We currently use a Docker Swarm cluster consisting of 2 nodes.
A manager node with Traefik as reverse proxy (with letsencrypt) and Portainer
and a worker node with the wordpress stack.
Traefik and Portainer dashboards work correctly in https.
I don't know where the problem may be, but once configured everything (source file, database, etc ...) if I configure the wordpress domain with "http" it works if I configure with "https" generates the error "ERR_TOO_MANY_REDIRECTS".
I set up the domain using the WP-CLI with the following commands:
wp search-replace 'http://www.domain.com/' '/' --skip-columns = guid --all-tables;
ant then
wp option update home 'https://www.domain.com';
wp option update siteurl 'https://www.domain.com';
or
wp option update home 'http://www.domain.com';
wp option update siteurl 'http://www.domain.com';
Here is a small diagram:

Hi All,
I'm migrating a wordpress website to docker , I configured a docker-compose.yml with 2 services: wordpress and mysql.
We currently use a Docker Swarm cluster consisting of 2 nodes.
A manager node with Traefik as reverse proxy (with letsencrypt) and Portainer
and a worker node with the wordpress stack.
Traefik and Portainer dashboards work correctly in https.
I don't know where the problem may be, but once configured everything (source file, database, etc ...) if I configure the wordpress domain with "http" it works if I configure with "https" generates the error "ERR_TOO_MANY_REDIRECTS".
I set up the domain using the WP-CLI with the following commands:
wp search-replace 'http://www.domain.com/' '/' --skip-columns = guid --all-tables;
ant then
wp option update home 'https://www.domain.com';
wp option update siteurl 'https://www.domain.com';
or
wp option update home 'http://www.domain.com';
wp option update siteurl 'http://www.domain.com';
Here is a small diagram:
