version: '3.7' volumes: traefik: networks: ${NETWORK:-traefik}: name: ${NETWORK:-traefik} services: traefik: image: "${IMAGE:-traefik}:${VERSION:-latest}" container_name: "${NAME:-traefik}" ports: - "${HTTP_PORT:-80:80}" - "${HTTPS_PORT:-443:443}" networks: - traefik labels: - "traefik.http.routers.${ROUTER:-traefik}.rule=Host(`${DOMAIN:-traefik.local.krislamo.org}`)" - "traefik.http.routers.${ROUTER:-traefik}.service=api@internal" - "traefik.docker.network=${NETWORK:-traefik}" - "traefik.enable=${ENABLE:-false}" volumes: - /var/run/docker.sock:/var/run/docker.sock - "traefik:/etc/traefik"