888 888 d8b 888 888
888 888 Y8P 888 888
888 888 888 888
.d88888 .d88b. 888 888 .d8888b 88888b. 888d888 88888b. 888 888 88888b.d88b. .d88b. 888d888 888 .d88888 888 888 .d88b. 888888 .d88b. .d8888b 88888b.
d88" 888 d8P Y8b 888 888 d88P" 888 "88b 888P" 888 "88b 888 888 888 "888 "88b d8P Y8b 888P" 888 d88" 888 888 888 d8P Y8b 888 d8P Y8b d88P" 888 "88b
888 888 https:// Y88 88P 888 888 888 888 888888 888 888 888 888 888 888 888 88888888 888 888 888 888 888 888 88888888 888 88888888 888 888 888
Y88b 888 Y8b. Y8bd8P d8b Y88b. 888 888 888 888 888 Y88b 888 888 888 888 Y8b. 888 888 Y88b 888 Y88b 888 Y8b. d8b Y88b. Y8b. Y88b. 888 888
"Y88888 "Y8888 Y88P Y8P "Y8888P 888 888 888 888 888 "Y88888 888 888 888 "Y8888 888 888 "Y88888 "Y88888 "Y8888 Y8P "Y888 "Y8888 "Y8888P 888 888
888
888
888
What is dev.chr-numerique.tech?
This service provide a default resolving to 127.0.0.1, pretty handy in a local configuration:
backoffice.dev.chr-numerique.tech resolves to 127.0.0.1
manager.dev.chr-numerique.tech resolves to 127.0.0.1
mysite.dev.chr-numerique.tech resolves to 127.0.0.1
foo.bar.dev.chr-numerique.tech resolves to 127.0.0.1
Ok but why?
The name comes from traefik.io, that is an open-source reverse proxy and load
balancer. Used in conjonction with docker, it becomes very handy for local web
development. Here is a typical docker-compose.yml file you might produce:
version: '3'
services:
traefik:
restart: unless-stopped
image: traefik:v2.0.2
command: --providers.docker=true
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
app1:
image: containous/whoami
labels:
- "traefik.http.routers.app1.rule=Host(`app1.dev.chr-numerique.tech`)"
app2:
image: containous/whoami
labels:
- "traefik.http.routers.app2.rule=Host(`app2.dev.chr-numerique.tech`)"
Launch it with docker-compose up. Open your browser, and visit app1.dev.chr-numerique.tech
or app2.dev.chr-numerique.tech. It just works as expected out of the box, without additional
configuration or /etc/hosts tuning.
Copyright Pyrou to traefik.me for the inspiration of the present website.