Kutt URL Shortener

Topics: Web applications

Kutt is an open-source URL-shortening web application for creating and managing shortened links.

Subtopics

Bookmarks

Docker setup

At the time of writing, the Docker setup docs were missing a few pieces. Here is a basic Docker Compose manifest for a setup with Sqlite and Redis:

services:
  server:
    image: kutt/kutt:latest
    restart: always
    volumes:
      - db_data_sqlite:/var/lib/kutt
      - custom:/kutt/custom
    environment:
      DB_FILENAME: "/var/lib/kutt/data.sqlite"
      REDIS_ENABLED: true
      REDIS_HOST: redis
      REDIS_PORT: 6379
      DEFAULT_DOMAIN: yourwebsite.com #no http or https
    ports:
      - 3000:3000
    depends_on:
      redis:
        condition: service_started
  redis:
    image: redis:alpine
    restart: always
    expose:
      - 6379
volumes:
  db_data_sqlite:
  custom:

[!attention] Make sure to also define the JWT_SECRET environment variable (possibly as a deployment secret).

Questions