Skip to content

Run docker containers on port 80 through a proxy with docker aliases

Notifications You must be signed in to change notification settings

framework-tools/dockerdnsproxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dockerdnsproxy

Run docker containers on port 80 through a proxy with docker aliases

Requirements

  1. Add 127.0.0.1 to your DNS

MacOS:

networksetup -setdnsservers Wi-Fi 127.0.0.1 8.8.8.8

8.8.8.8 is Google's Public DNS Server

  1. Install nodemon globally
  2. Install docker
  3. Run npm i

Windows As administrator:

netsh interface show config

Locate the network connection for which you want the DNS server changed (eg: WiFi).

netsh interface ipv4 add dns "WiFi" 127.0.0.1 index=1
netsh interface ipv4 add dns "WiFi" 8.8.8.8 index=2
ipconfig /flushdns

Starting proxy + dns server

nodemon

and in a seperate shell

docker-compose up

Todo

  • Setup automatic DNS update
    • Windows
    • MacOS
  • Slim code
  • Start docker automatically from node
  • Attach each docker to network automatically
  • Create docker-compose instructions

About

Run docker containers on port 80 through a proxy with docker aliases

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published