Fork of https://github.com/aeolyus/gull with basic changes
.github/workflows | ||
handlers | ||
public | ||
utils | ||
.gitignore | ||
docker-compose.yml | ||
Dockerfile | ||
go.mod | ||
go.sum | ||
LICENSE | ||
Makefile | ||
README.md | ||
server.go |
gull
A simple URL shortener made in Go
Usage
Docker
Optionally, build the container. Otherwise, the public one will be pulled down.
make image
Run the container.
docker run \
-d \
--name gull \
-v /gull-data/:/data/ \
-p 8081:8081 \
ghcr.io/aeolyus/gull:latest
This will preserve any persistent data under /gull-data/
. Change this as needed.
docker-compose
Build the image from this repository and run
docker-compose up -d
This will open port 8081 and preserve data in ./gull-data
.
From Source
git clone https://github.com/aeolyus/gull.git
cd ./gull
make run
This will create a directory ./gull/data
where persistent data will be stored.
Acknowledgements
Inspired by mnml!