wordpress-docker-compose icon indicating copy to clipboard operation
wordpress-docker-compose copied to clipboard

Provide a working example with nginx-auto-ssl

Open nguyenlamlll opened this issue 3 years ago • 0 comments

This PR provides an example for #48. I am not sure how you want to go with this @nezhar, so I leave them as commented lines.

To enable SSL for the WordPress site, one would need a domain (replace yourdomain.com with the actual domain) pointing to the server, uncomment these lines, and docker-compose up -d.

Instead of going directly to the Wordpress container, HTTP/S traffic will go first to nginx container, then go to WordPress. Because of that, wp container does not need to expose via port 80 now. Otherwise, port conflict will occur.

nguyenlamlll avatar Jun 08 '21 08:06 nguyenlamlll