You should not edit the config.php file directly while using the container, and use the available environment variables instead. In case of the trusted domains, this would be OWNCLOUD_TRUSTED_DOMAINS=localhost,192.168.1.66,89.xxx.xx.xxx keep in mind it needs to be a comma-separated list without spaces.
If that still don’t work, please provide the content of your owncloud logfile.