Example using some docker service with docker-compose.yml and labels. This requires running local-traefik from https://github.com/DevilaN/local-traefik
Create entry for test.localhost 127.0.0.1 in your hosts file.
Run docker-compose up
and visit https://test.localhost/ in browser (accepting self signed cert might be required).