druidfi / stonehenge

Multi-project local development environment & toolset on Docker
MIT License
61 stars 6 forks source link

Possibility to route docker.so domains to local JS apps? #67

Open back-2-95 opened 2 years ago

back-2-95 commented 2 years ago

E.g. have https://test.docker.so to route to host running JS app: http://host.docker.internal:3000.

back-2-95 commented 2 years ago

Maybe use Traefik's dynamic configuration:

https://doc.traefik.io/traefik/getting-started/configuration-overview/#the-dynamic-configuration

back-2-95 commented 2 years ago

Maybe add script to Treafik service with mount which can create dynamic entries:

docker exec stonehenge add-service foobar [port]
back-2-95 commented 2 years ago

This is now part of 4.x but needs some documenting.