{"id":19480674,"url":"https://github.com/thedxt/shlink-docker","last_synced_at":"2026-05-15T00:36:13.094Z","repository":{"id":262136875,"uuid":"886322787","full_name":"thedxt/Shlink-docker","owner":"thedxt","description":"Shlink Docker Compose with Cloudflare Tunnel and MariaDB","archived":false,"fork":false,"pushed_at":"2024-11-10T18:40:04.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T07:15:31.789Z","etag":null,"topics":["cloudflared","docker-compose","mariadb","shlink"],"latest_commit_sha":null,"homepage":"https://thedxt.ca/2024/11/shlink-with-docker-and-cloudflare-tunnel/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thedxt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-10T18:18:44.000Z","updated_at":"2024-12-23T09:16:40.000Z","dependencies_parsed_at":"2024-11-10T19:26:50.709Z","dependency_job_id":"5170c9c7-304c-4949-939c-8f65c96eba96","html_url":"https://github.com/thedxt/Shlink-docker","commit_stats":null,"previous_names":["thedxt/shlink-docker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedxt%2FShlink-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedxt%2FShlink-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedxt%2FShlink-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedxt%2FShlink-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thedxt","download_url":"https://codeload.github.com/thedxt/Shlink-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240712708,"owners_count":19845526,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudflared","docker-compose","mariadb","shlink"],"created_at":"2024-11-10T20:00:46.306Z","updated_at":"2026-05-15T00:36:13.090Z","avatar_url":"https://github.com/thedxt.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"![image](https://github.com/user-attachments/assets/8d6d2082-ebc3-402d-aacc-5a38f057a083)\n\n# Shlink Docker\nThis will create everything needed to run Shlink in a Docker container including a container for a Cloudflare Tunnel and one for the MariaDB database.\nThis uses the official [Shlink image](https://github.com/shlinkio/shlink), the official [MariaDB image](https://github.com/MariaDB/mariadb-docker), the official [Shlink web client image](https://github.com/shlinkio/shlink-web-client), the official [Cloudflare tunnel image](https://github.com/cloudflare/cloudflared).\n\nUse .env to define the variables.\n\n### .env Variables\n - `CONTAINER_NAME` the name of your Shlink stack. There will be 4 containers spawned.\n   - The one with `_app` appended to it is the Shlink application image that runs all of Shlink.\n   - The one with `_db` appended to it is the MariaDB image for Shlink to store all the configurations.\n   - The one with `_web_client` append to it is the Shlink web client image that gives you a nice UI to manage your short URLs.\n   - The one with `_cf` appended to it is the Cloudflare tunnel image for the Shlink application.\n - `DB_NAME` the name of the MariaDB database that Shlink will use.\n - `DB_ROOT_PWD` the MariaDB root password.\n - `DB_USER` the database user that Shlink will use.\n - `DB_USER_PWD` the password for the database user that Shlink will use.\n - `SHORT_DOMAIN` the domain for the short URLs. (only include the FQDN)\n - `REDIRECT_DOMAIN` where invalid short links, direct visits to the short domain, or 404 pages will be sent. (this needs to start with https://)\n - `APP_PORT` the port that the Shlink application will run on and the port used with the Cloudflare tunnel.\n - `ADMIN_API` the initial API key that will be used to configure Shlink and will be preloaded to the Shlink Web Client.\n - `WEB_CLIENT_PORT` the port the Shlink web client will use.\n - `CF_TUNNEL` the Base64 of the Cloudflare tunnel for Shlink.\n\n [More detailed documentation](https://thedxt.ca/2024/11/shlink-with-docker-and-cloudflare-tunnel/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedxt%2Fshlink-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthedxt%2Fshlink-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedxt%2Fshlink-docker/lists"}