YOURLS

YOURLS is a set of PHP scripts that will allow you to run Your Own URL Shortener. Features include password protection, URL customization, bookmarklets, statistics, API, plugins, jsonp.

Directory Structure

    • .env
    • docker-compose.yml

docker-compose.yml

version: '3.1'
 
services:
  yourls:
    image: yourls
    restart: always
    ports:
      - 8080:80
    environment:
      YOURLS_DB_PASS: example
      YOURLS_SITE: https://example.com
      YOURLS_USER: example_username
      YOURLS_PASS: example_password
  mysql:
    image: mysql
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: example
      MYSQL_DATABASE: yourls

Resources

Website: https://yourls.org/

GitHub: https://github.com/YOURLS/YOURLS

Docker Hub: https://hub.docker.com/_/yourls

Configuration: https://github.com/YOURLS/containers/tree/main/images/yourls