Automated Reverse Proxy and virtual hosts for local docker services.
make install
make run
- Add to upstream service docker-compose configuration:
services:
some-service:
labels:
- "traefik.enable=true"
- "traefik.http.routers.some-service.rule=Host(`some-service.local`)"
- "traefik.http.routers.some-service.entrypoints=web"
- Add virtual host name to
/etc/hosts
127.0.0.1 some-service.local
Now you can open your service from host at http://some-service.local.