Skip to content

Docker container for a self-hosted "memorable" short URL service.

License

Notifications You must be signed in to change notification settings

chhamilton/golinks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Docker Image

A dockerized "go" short-link service.

Background

This is a rebuild of https://hub.docker.com/r/kellegous/go, but built against more recent versions of Alpine Linux and Golang. It also uses the Linuxserver.io Alpine base image so that it supports UID/GID environment variables.

Running the image

docker run -d --name golinks -p 8067:8067 -v <hostpath>:/data

The folder /data stores the database of shortened URLs. The service will run on port 8067.

Configuration

The service will run with the user and group ID provided via the PUID and PGID environment variables, like all linuxserver.io based containers. This defaults to UID=911 and GID=911. Inside the container, the user and group name is abc.

The database is expected to be mounted at /data and read/writable by the appropriate user/group.

Using the Service

Once you have it all setup, using it is pretty straight-forward.

Create a new shortcut

Type go/edit/my-shortcut and enter the URL.

Visit a shortcut

Type go/my-shortcut and you'll be redirected to the URL.

Shorten a URL

Type go and enter the URL.

About

Docker container for a self-hosted "memorable" short URL service.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published