Ecommerce Shopify WordPress Discussion

Setup 2 wordpress containers to use HTTPS

At the moment i have 2 linux servers running a wordpress website. I first wanted to migrated them to my IIS server but wordpress on IIS doesn't work that well. So i decided to build a new linux server with docker running (DOK01). On that new server i added the portainer container for easier control. Next i created 3 new containers: 1 containing nginx-proxy 2 containing wordpress I added the nginx-proxy to the network of wp container 1 and 2 so that they can communicate without firewall rules blocking things. In my HAproxy i have added strings that redirect: (HTTPS doesn't work) http wp.website1.nl to 10.50.0.49:80 https wp.website1.nl to 10.50.49.443 http wp.website2.nl to 10.50.0.49:80 https wp.website2.nl to 10.50.49.443 My old stings to my IIS server works just fine: (HTTPS works fine) http website1.nl to 10.50.0.45:80 https website1.nl to 10.50.0.45:443 http website2.nl to 10.50.0.45:80 https website2.nl to 10.50.0.45:443 On my PfSense router i have the module ACME, that module makes sure my SSL certificates will be automatically renewed every 2.5 months, HAproxy than handles that the correct SSL certificate is use by the correct domain name. The problem is that when i go to https wp website1 nl or https wp website2 nl I get error 503 That indicates that the docker server isn't responding to the https request. Im very new to docker so i think maybe i need to change some settings in my nginx-proxy and wordpress cotainers to be able to use HTTPS (443) Drawing to (hopefully) make it more clear I already try disabled the firewall from the DOK01 Added config sting to the docker containers: ports: - 8181:80 - 4330:443 EXPOSE 80 EXPOSE 443 Wordpress template: version: '3.1' services: wordpress: container_name: wpsite1 image: wordpress restart: always expose: - 80 - 443 environment: WORDPRESS_DB_HOST: 10.50.0.48:3306 WORDPRESS_DB_USER: db_wpsite1 WORDPRESS_DB_PASSWORD: 'somepw' WORDPRESS_DB_NAME: wp_db_wpsite1 VIRTUAL_HOST: wp1.website1.nl volumes: - wpsite1:/var/www/html volumes: wpsite1: nginx-proxy template: nginx-proxy: image: jwilder/nginx-proxy ports: - "80:80" - "443:443" volumes: - /var/run/docker.sock:/tmp/docker.sock
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.