Skip to content
/ shorti Public

A simple private self hosted URL shortener service

License

Notifications You must be signed in to change notification settings

nicklog/shorti

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shorti

A simple private self hosted URL shortener service.

Buy me a coffee

Github Sponsors License Github Sponsors

Installation

Create a docker-compose.yml file in an empty directory.

version: '3.6'

services:
  app:
    image: ghcr.io/nicklog/shorti
    environment:
      - TZ=Europe/Berlin
      - DATABASE_NAME=shorti
      - DATABASE_USER=shorti
      - DATABASE_PASSWORD=shorti
      - DATABASE_HOST=database
      - DATABASE_PORT=3306
    depends_on:
      - database
    networks:
      - default

  database:
    image: mariadb:latest
    environment:
      - MYSQL_DATABASE=shorti
      - MYSQL_USER=shorti
      - MYSQL_PASSWORD=shorti
      - MYSQL_ROOT_PASSWORD=shorti
    networks:
      - default

Change any settings to your needs and then run simply docker-compose up -d.
You should now be able to access the site under port 80.

With this example setup the website is not secured by https.
When you want to secure it I suggest to use a reverse proxy.

User

On first call of the website you can create a user. Create one and then login.
The first user becomes an admin and can create more user if necessary.

Update

Just update the docker image with...

docker-compose pull
docker-compose up -d