shlink/docker
2023-06-04 09:33:16 +02:00
..
config Standardize logger for all Shlink execution contexts 2023-05-07 13:18:19 +02:00
docker-entrypoint.sh Fix merge conflicts 2023-06-04 09:33:16 +02:00
README.md Deprecate support for openswoole 2023-06-03 09:08:07 +02:00

Shlink Docker image

Docker build status Docker pulls

This image provides an easy way to set up shlink on a container-based runtime.

It exposes a shlink instance served with RoadRunner or openswoole, which can be linked to external databases to persist data.

Usage

The most basic way to run Shlink's docker image is by providing these mandatory env vars.

  • DEFAULT_DOMAIN: The default short domain used for this shlink instance. For example s.test.
  • IS_HTTPS_ENABLED: Either true or false. Tells if Shlink is being served with HTTPs or not.
  • GEOLITE_LICENSE_KEY: Your GeoLite2 license key. Learn more about this.

To run shlink on top of a local docker service, and using an internal SQLite database, do the following:

docker run \
    --name shlink \
    -p 8080:8080 \
    -e DEFAULT_DOMAIN=s.test \
    -e IS_HTTPS_ENABLED=true \
    -e GEOLITE_LICENSE_KEY=kjh23ljkbndskj345 \
    shlinkio/shlink:stable

Full documentation

All the features supported by Shlink are also supported by the docker image.

If you want to learn more, visit the full documentation.