As a lot of people do, we also use Dinghy for our development. Of course we're using docker containers. I'm wondering something, and I hope you can help me with this.
When using ishi with the following command:
~/go/bin/ishi --listen 8080 app.XXX.docker
I can share my LAN ip to my colleagues, and they can check out this new awesome website we're building.
I'm having one problem though and I don't know who to fix it. When sharing this IP, it seems like the $_SERVER['HTTP_HOST'] in PHP is replaced with app.XXX.docker instead of the LAN address:PORT.
When using assets/css, this path cannot be resolved. For example:
<link href="http://app.XXX.docker/media/icons/share.png" rel="apple-touch-icon-precomposed">
<link rel="stylesheet" href="http://app.XXX.docker/css/main.css">
When requesting a URL like http://app.XXX.docker/css/main.css
this cannot be found. It can only be accessed by docker container itself, not by the shared URL (LAN).
How to get along with this? Do you understand what i'm trying to say?