You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+39Lines changed: 39 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -171,3 +171,42 @@ directly on the host, as it defaults to `127.0.0.1`.
171
171
Different Linux distributions will require different steps for configuring DNS
172
172
resolution. The [Dory](https://github.com/FreedomBen/dory) project may be useful
173
173
here, it knows how to configure common distros for `dinghy-http-proxy`.
174
+
175
+
### Windows
176
+
177
+
* For Docker for Windows, you can use `127.0.0.1` as the DNS IP.
178
+
179
+
From Powershell:
180
+
```
181
+
docker run -d --restart=always `
182
+
-v /var/run/docker.sock:/tmp/docker.sock:ro `
183
+
-p 80:80 -p 443:443 -p 19322:19322/udp `
184
+
-e CONTAINER_NAME=http-proxy `
185
+
-e DNS_IP=127.0.0.1 `
186
+
--name http-proxy `
187
+
codekitchen/dinghy-http-proxy
188
+
```
189
+
190
+
From docker-compose:
191
+
```
192
+
version: '2'
193
+
services:
194
+
195
+
http-proxy:
196
+
container_name: http-proxy
197
+
image: codekitchen/dinghy-http-proxy
198
+
environment:
199
+
- DNS_IP=127.0.0.1
200
+
- CONTAINER_NAME=http-proxy
201
+
ports:
202
+
- "80:80"
203
+
- "443:443"
204
+
- "19322:19322/udp"
205
+
volumes:
206
+
- /var/run/docker.sock:/tmp/docker.sock:ro
207
+
```
208
+
209
+
You will have to add the hosts to `C:\Windows\System32\drivers\etc\hosts` manually. There are various Powershell scripts available to help manage this:
0 commit comments