add web console #2

Merged
ammaratef45 merged 1 commits from add-console into main 2025-12-17 17:24:56 +00:00
2 changed files with 19 additions and 0 deletions

View File

@ -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.<app-name>` 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`.

View File

@ -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: