Shlink
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:
docker exec shlink-backend shlink api-key:generate
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.
*
If you use the video tutorial, please, acknowledge this.
No Comments