From c389b492f87de6aade4e496f90e2af273cf6d9cd Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Mon, 11 Mar 2024 00:41:58 +0100 Subject: [PATCH] added docker-compose labels --- docker-compose.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 1af93d96..ef325768 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,10 +1,12 @@ services: backend-v2: restart: always - build: - context: server/ - args: - version: dev # compiled with the git sha in prod + labels: + - "traefik.enable=true" + - "traefik.http.routers.backend-v2.rule=Host(`api.tum.app`)" + + - "traefik.http.routers.backend-v2_h2.rule=Host(`api-grpc.tum.app`) && Headers(`Content-Type`, `application/grpc`)" + - "traefik.http.routers.backend-v2_h2.scheme=h2c" expose: - "50051" environment: @@ -60,6 +62,9 @@ services: expose: - "8081" #- "9901" # admin interface, not very useful + labels: + - "traefik.enable=true" + - "traefik.http.routers.backend-v2.rule=Host(`api.tum.app`)" volumes: - ./config/envoy.yaml:/etc/envoy/envoy.yaml:ro depends_on: