Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Dockerfile implementation for woocommerce

Docker Pull Command
Owner
agrothberg
Source Repository

Comments (2)
diman82
6 months ago

I'm getting the following error right away:

error: missing WORDPRESS_DB_HOST and MYSQL_PORT_3306_TCP environment variables
Did you forget to --link some_mysql_container:mysql or set an external db
with -e WORDPRESS_DB_HOST=hostname:port?

Any clues?

kainhofer
a year ago

Thanks for the container. I'm just running into two issues:
1) The WooCommerce plugin files are all owned by root.root, so upgrading WC through the WP plugin page will fail, as apache won't have write permissions to the WC files.
2) The CURL api has changed, so WP will give some error messages about their servers not being reachable. This can be solved by disabling curl and using only streams as the transport. In particular, the issue can be solved by appending the following to wp-config.php:
add_filter( 'http_api_transports', function()
{
return array( 'streams' );
});