From fe3abd70a07393285f9ec0eba518168654942821 Mon Sep 17 00:00:00 2001 From: Ammar Hussein Date: Mon, 29 Sep 2025 20:27:03 -0700 Subject: [PATCH] add web console --- README.md | 6 ++++++ compose.yml | 13 +++++++++++++ 2 files changed, 19 insertions(+) diff --git a/README.md b/README.md index 7cbd2e0..5a9121c 100644 --- a/README.md +++ b/README.md @@ -24,3 +24,9 @@ * `bin/cli short-url:create` For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech). + +## Using the console + +The recipe will deploy a `console.` as well that you can use to manage and monitor short urls. + +To do so, you will need an api-key, which you can create by using the `./bin/cli api-key:generate`. \ No newline at end of file diff --git a/compose.yml b/compose.yml index 06cac46..60c0823 100644 --- a/compose.yml +++ b/compose.yml @@ -18,6 +18,19 @@ services: - "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure" - "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}" - "coop-cloud.${STACK_NAME}.version=0.2.0+4.4" + web: + image: shlinkio/shlink-web-client:4.5.1 + networks: + - proxy + deploy: + restart_policy: + condition: on-failure + labels: + - "traefik.enable=true" + - "traefik.http.services.${STACK_NAME}-console.loadbalancer.server.port=8080" + - "traefik.http.routers.${STACK_NAME}-console.rule=Host(`console.${DOMAIN}`)" + - "traefik.http.routers.${STACK_NAME}-console.entrypoints=web-secure" + - "traefik.http.routers.${STACK_NAME}-console.tls.certresolver=${LETS_ENCRYPT_ENV}" networks: proxy: -- 2.49.0