Nginx as loadbalancer for wordpress, error serving static files

Solution:

  1. Log in to the container:docker exec -it "name_of_container" bash
  2. Add the following lines to wp-config.phpdefine('WP_HOME', 'http://your_domain.com');

    define('WP_SITEURL', 'http://your_domain.com');