Skip to main content

Shlink

Video*
Shlink
Maxmind

version: "3"

services:
  shlink:
    image: shlinkio/shlink:stable
    restart: unless-stopped
    container_name: shlink-backend
    environment:
      - TZ="Europe/Paris"
      - DEFAULT_DOMAIN=sub.domain.ldt #no http/https. no trailing slash
      - IS_HTTPS_ENABLED=true
      - GEOLITE_LICENSE_KEY=xxxxxxxxx #we'll need to get this key from maxmind.com
      - DB_DRIVER=maria
      - DB_USER=shlink
      - DB_NAME=shlink
      - DB_PASSWORD=xxxxxx #change this
      - DB_HOST=database
    depends_on:
      - database
    ports:
      - 8987:8080

  database:
    image: mariadb:10.8
    restart: unless-stopped
    container_name: shlink-database
    environment:
      - MARIADB_ROOT_PASSWORD=xxxxxxx #change this
      - MARIADB_DATABASE=shlink
      - MARIADB_USER=shlink
      - MARIADB_PASSWORD=xxxxxx #change this
    volumes:
      - /srv/path/Files/Shlink/db:/var/lib/mysql

  shlink-web-client:
    image: shlinkio/shlink-web-client
    restart: unless-stopped
    container_name: shlink-gui
    depends_on:
      - shlink
    ports:
      - 8986:8080

Once everything is up and running, you're going to run the following command to generate an API key for the web interface:

Store the api-key for the next step.

Now go to: http://192.168.x.xxx:8086

You'll be asked to connect a server. Give the server a name, enter the URL of the shlink-backend as well as the API key.

*
IgfIf you use the videvideo tutorial, please, aknowledgeacknowledge this.