This will create everything needed to run Shlink in a Docker container including a container for a Cloudflare Tunnel and one for the MariaDB database. This uses the official Shlink image, the official MariaDB image, the official Shlink web client image, the official Cloudflare tunnel image.
Use .env to define the variables.
CONTAINER_NAMEthe name of your Shlink stack. There will be 4 containers spawned.- The one with
_appappended to it is the Shlink application image that runs all of Shlink. - The one with
_dbappended to it is the MariaDB image for Shlink to store all the configurations. - The one with
_web_clientappend to it is the Shlink web client image that gives you a nice UI to manage your short URLs. - The one with
_cfappended to it is the Cloudflare tunnel image for the Shlink application.
- The one with
DB_NAMEthe name of the MariaDB database that Shlink will use.DB_ROOT_PWDthe MariaDB root password.DB_USERthe database user that Shlink will use.DB_USER_PWDthe password for the database user that Shlink will use.SHORT_DOMAINthe domain for the short URLs. (only include the FQDN)REDIRECT_DOMAINwhere invalid short links, direct visits to the short domain, or 404 pages will be sent. (this needs to start with https://)APP_PORTthe port that the Shlink application will run on and the port used with the Cloudflare tunnel.ADMIN_APIthe initial API key that will be used to configure Shlink and will be preloaded to the Shlink Web Client.WEB_CLIENT_PORTthe port the Shlink web client will use.CF_TUNNELthe Base64 of the Cloudflare tunnel for Shlink.
