Self-hosted URL shortener. SQLite/MySQL, custom domains, REST API, Docker. Open-source Bitly alt.
1.0K
OpenShort is an open-source, self-hosted URL shortener built for Docker. A modern alternative to Bitly you can run on your own infrastructure — with a web dashboard, custom domains, REST API, and zero-config SQLite or external MySQL support.
The fastest way to run OpenShort with persistent data:
docker run -d \
--name openshort \
-p 8081:8081 \
-p 8080:8080 \
-v openshort-data:/app/data \
--restart unless-stopped \
catokx/openshort:latest
Always map the
/app/datavolume to persist your links and settings across restarts.
Connect to an external MySQL database instead of SQLite:
docker run -d \
--name openshort \
-p 8081:8081 \
-p 8080:8080 \
-e MYSQL_HOST=your_mysql_host \
-e MYSQL_PORT=3306 \
-e MYSQL_DATABASE=openshort \
-e MYSQL_USER=root \
-e MYSQL_PASSWORD=your_secure_password \
--restart unless-stopped \
catokx/openshort:latest
OpenShort is a great fit for:
Full documentation, install instructions, api reference are available on: https://openshort.tech
Source code available on: https://github.com/emanueledeamicis/openshort
Content type
Image
Digest
sha256:1e8c286e9…
Size
124.6 MB
Last updated
6 months ago
docker pull catokx/openshort