Add New Service
Add New Service to Traefik
.env Variables
SUB=
DOMAIN=
NAME=
MIDDLWARES=
PORT=
Traefik Labels for Docker Compose file
labels:
traefik.enable: true
traefik.http.routers.CONTAINER_NAME.entrypoints: https
traefik.http.routers.CONTAINER_NAME.rule: Host(`${SUB}.${DOMAIN}`)
traefik.http.routers.CONTAINER_NAME.tls: true
traefik.http.routers.CONTAINER_NAME.service: ${NAME}
traefik.http.routers.CONTAINER_NAME.middlewares: ${MIDDLEWARES}
traefik.http.services.CONTAINER_NAME.loadbalancer.server.port: ${PORT}