Skip to content

Instantly share code, notes, and snippets.

@possebon
Last active December 19, 2025 18:27
Show Gist options
  • Select an option

  • Save possebon/b1d5a13a6c96ef16c37e96afa33361e2 to your computer and use it in GitHub Desktop.

Select an option

Save possebon/b1d5a13a6c96ef16c37e96afa33361e2 to your computer and use it in GitHub Desktop.
Open Source Infrastructure Stack - 14-traefik-deploy-labels

Traefik Automatic Service Discovery Labels

deploy:
  labels:
    - "traefik.enable=true"
    - "traefik.http.routers.myapp.rule=Host(`app.yourdomain.com`)"
    - "traefik.http.routers.myapp.entrypoints=websecure"
    - "traefik.http.routers.myapp.tls.certresolver=letsencryptresolver"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment