Shlink is a self-hosted URL shortener and link management platform that allows users to easily create and manage shortened links. In this tutorial, we will show you how to install Shlink on Windows 10.
Prerequisites
- Windows 10 Pro or Enterprise with Docker Desktop installed
- A terminal/command prompt application (e.g. PowerShell)
Step 1: Download the Shlink Docker Compose file
Step 2: Configure the Shlink environment variables
- In the extracted directory, open the
.env
file in a text editor
- Configure the environment variables according to your preferences, but at minimum, you should set
SHLINK_DB_DRIVER=mysql
, SHLINK_DB_NAME=shlink
and SHLINK_DB_USER=root
Step 3: Start Docker and Shlink
- Open a terminal or command prompt application
- Navigate to the extracted directory where the
docker-compose.yml
file is saved
- Run the following command to start the Docker containers:
docker-compose up -d
- This will build and start the Shlink container and other necessary containers in the background. You may need to wait a few moments for the containers to start and become available.
Step 4: Access Shlink in your web browser
- Open your web browser and navigate to
http://localhost:8080
- You should see the Shlink dashboard, which means that the installation was successful!
Conclusion
In this tutorial, you have learned how to install and configure Shlink on Windows 10 using Docker. You can now use Shlink to create and manage shortened links for your personal or business needs.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!