Ensure each container labels file defines at least one service
Most of these files were defining a service, usually toward the end. These lines have been moved upward. Some components (mautrix-signal, mautrix-gmessages, etc.) were defining a service conditionally (only if metrics are exposed, etc). This was causing issues like these in the Traefik logs: > level=error msg="service \"matrix-mautrix-twitter\" error: port is missing" providerName=docker container=matrix-mautrix-twitter-..
This commit is contained in:
@ -5,6 +5,8 @@ traefik.enable=true
|
||||
traefik.docker.network={{ matrix_mx_puppet_slack_container_labels_traefik_docker_network }}
|
||||
{% endif %}
|
||||
|
||||
traefik.http.services.matrix-mx-puppet-slack.loadbalancer.server.port={{ matrix_mx_puppet_slack_appservice_address }}
|
||||
|
||||
{% if matrix_mx_puppet_slack_container_labels_public_endpoint_enabled %}
|
||||
############################################################
|
||||
# #
|
||||
@ -12,8 +14,6 @@ traefik.docker.network={{ matrix_mx_puppet_slack_container_labels_traefik_docker
|
||||
# #
|
||||
############################################################
|
||||
|
||||
traefik.http.services.matrix-mx-puppet-slack.loadbalancer.server.port={{ matrix_mx_puppet_slack_appservice_address }}
|
||||
|
||||
traefik.http.routers.matrix-mx-puppet-slack-public.rule={{ matrix_mx_puppet_slack_container_labels_public_endpoint_traefik_rule }}
|
||||
|
||||
{% if matrix_mx_puppet_slack_container_labels_public_endpoint_traefik_priority | int > 0 %}
|
||||
|
Reference in New Issue
Block a user