From 841523506f915577261da21a5e13eceef8056f91 Mon Sep 17 00:00:00 2001 From: Agustin Carrasco Date: Sat, 6 Jan 2024 00:10:03 -0300 Subject: [PATCH] fix(lobe chat): add traefik labels to make app exposable --- apps/lobe-chat/docker-compose.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/apps/lobe-chat/docker-compose.yml b/apps/lobe-chat/docker-compose.yml index 618a4ebf..03ae4f6b 100644 --- a/apps/lobe-chat/docker-compose.yml +++ b/apps/lobe-chat/docker-compose.yml @@ -13,3 +13,28 @@ services: restart: unless-stopped networks: - tipi_main_network + labels: + # Main + traefik.enable: true + traefik.http.middlewares.lobe-chat-web-redirect.redirectscheme.scheme: https + traefik.http.services.lobe-chat.loadbalancer.server.port: 16662 + # Web + traefik.http.routers.lobe-chat-insecure.rule: Host(`${APP_DOMAIN}`) + traefik.http.routers.lobe-chat-insecure.entrypoints: web + traefik.http.routers.lobe-chat-insecure.service: lobe-chat + traefik.http.routers.lobe-chat-insecure.middlewares: lobe-chat-web-redirect + # Websecure + traefik.http.routers.lobe-chat.rule: Host(`${APP_DOMAIN}`) + traefik.http.routers.lobe-chat.entrypoints: websecure + traefik.http.routers.lobe-chat.service: lobe-chat + traefik.http.routers.lobe-chat.tls.certresolver: myresolver + # Local domain + traefik.http.routers.lobe-chat-local-insecure.rule: Host(`lobe-chat.${LOCAL_DOMAIN}`) + traefik.http.routers.lobe-chat-local-insecure.entrypoints: web + traefik.http.routers.lobe-chat-local-insecure.service: lobe-chat + traefik.http.routers.lobe-chat-local-insecure.middlewares: lobe-chat-web-redirect + # Local domain secure + traefik.http.routers.lobe-chat-local.rule: Host(`lobe-chat.${LOCAL_DOMAIN}`) + traefik.http.routers.lobe-chat-local.entrypoints: websecure + traefik.http.routers.lobe-chat-local.service: lobe-chat + traefik.http.routers.lobe-chat-local.tls: true