From 9e155efd499c68fde2ef3f301f9367fa26017f1b Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Thu, 20 Mar 2025 17:12:41 -0400 Subject: [PATCH] feat: Adds shlink web client. --- compose.yaml | 13 +++++++++++++ example.env | 9 ++------- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/compose.yaml b/compose.yaml index fc8cdbe..6ae30c0 100644 --- a/compose.yaml +++ b/compose.yaml @@ -15,6 +15,19 @@ services: security_opt: - no-new-privileges:true + shlink_web: + image: docker.io/shlinkio/shlink-web-client:latest + container_name: shlink_web + environment: + SHLINK_SERVER_URL: "https://${DEFAULT_DOMAIN}" + SHLINK_SERVER_API_KEY: ${API_KEY} + ports: + - ${SHLINK_WEB_PORT}:8080 + networks: + - proxy + security_opt: + - no-new-privileges:true + shlink_postgres: image: docker.io/postgres:17-alpine container_name: shlink_postgres diff --git a/example.env b/example.env index 57fb641..545f912 100644 --- a/example.env +++ b/example.env @@ -10,13 +10,8 @@ DB_NAME=shlink DB_USER=shlink DB_PASSWORD="super-secret" DB_PORT=5432 -# Set these to owner of the database volume. -# These also need to be in /etc/passwd of the host for -# postgres to startup correctly. -DB_USER_UID=1000 -DB_USER_GID=1000 # Other custom variables. SHLINK_PORT=8880 -DB_LOCATION=":/var/nfs/shared/" -NFS_ADDR=nas.local +SHLINK_WEB_PORT=8881 +API_KEY=""