{
  "id": "yourls",
  "name": "YOURLS",
  "slogan": "A self-hosted URL shortener with custom keywords, click statistics and a plugin system. Runs with a bundled MariaDB database. The admin login is the user and password you set in the install form.",
  "category": "Applications",
  "categorySlug": "applications",
  "tags": [
    "mysql",
    "multi-service"
  ],
  "license": {
    "spdx": "MIT",
    "class": "permissive"
  },
  "memoryMiB": 256,
  "architectures": {
    "amd64": "published",
    "arm64": "published"
  },
  "trust": "listed",
  "verified": false,
  "status": "active",
  "installCommand": "levelrail-cli templates install yourls --name my-yourls --env YOURLS_PASS=VALUE",
  "deployFormats": [
    "cli",
    "api"
  ],
  "url": "https://levelrail.com/templates/yourls/",
  "docsUrl": "https://yourls.org/docs/",
  "sourceRepo": "https://github.com/YOURLS/YOURLS",
  "markdownUrl": "https://levelrail.com/templates/yourls.md",
  "jsonUrl": "https://levelrail.com/templates/yourls.json",
  "indexable": true,
  "description": "A self-hosted URL shortener with custom keywords, click statistics and a plugin system. Runs with a bundled MariaDB database. The admin login is the user and password you set in the install form.",
  "pinnedTag": "11.8.9",
  "licenseUrl": "https://github.com/YOURLS/YOURLS/blob/master/LICENSE",
  "licenseClassLabel": "Permissive license",
  "needsConfig": true,
  "gpu": false,
  "firstRun": [
    "Open /admin/install.php on the app address and click Install YOURLS once.",
    "Sign in at /admin/ with the user and password from the install form."
  ],
  "services": [
    {
      "name": "db",
      "image": "mariadb",
      "tag": "11.8.9",
      "ports": [],
      "volumes": [
        "dbdata -> /var/lib/mysql"
      ]
    },
    {
      "name": "yourls",
      "image": "yourls",
      "tag": "1.10.6",
      "ports": [
        8080
      ],
      "volumes": []
    }
  ],
  "env": [
    {
      "service": "db",
      "name": "MARIADB_DATABASE",
      "kind": "preset"
    },
    {
      "service": "db",
      "name": "MARIADB_PASSWORD",
      "kind": "generated"
    },
    {
      "service": "db",
      "name": "MARIADB_ROOT_PASSWORD",
      "kind": "generated"
    },
    {
      "service": "db",
      "name": "MARIADB_USER",
      "kind": "preset"
    },
    {
      "service": "yourls",
      "name": "YOURLS_DB_HOST",
      "kind": "preset"
    },
    {
      "service": "yourls",
      "name": "YOURLS_DB_NAME",
      "kind": "preset"
    },
    {
      "service": "yourls",
      "name": "YOURLS_DB_PASS",
      "kind": "generated"
    },
    {
      "service": "yourls",
      "name": "YOURLS_DB_USER",
      "kind": "preset"
    },
    {
      "service": "yourls",
      "name": "YOURLS_PASS",
      "kind": "required"
    },
    {
      "service": "yourls",
      "name": "YOURLS_SITE",
      "kind": "preset"
    },
    {
      "service": "yourls",
      "name": "YOURLS_USER",
      "kind": "preset"
    }
  ],
  "verifiedTag": null,
  "verifiedArches": [],
  "aliases": [],
  "findings": [],
  "compose": null,
  "deploy": {
    "cli": "levelrail-cli templates install yourls --name my-yourls --env YOURLS_PASS=VALUE",
    "api": "curl -X POST -H \"Authorization: Bearer $TOKEN\" -H \"Content-Type: application/json\" \\\n  https://levelrail.example.com/api/v1/service-templates/yourls/install \\\n  -d '{\n    \"name\": \"my-yourls\",\n    \"env\": { \"YOURLS_PASS\": \"VALUE\" }\n  }'",
    "stack": null,
    "terraform": null,
    "formats": [
      {
        "id": "cli",
        "label": "CLI",
        "lang": "bash",
        "code": "levelrail-cli templates install yourls --name my-yourls --env YOURLS_PASS=VALUE",
        "note": "Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain db=app.example.com."
      },
      {
        "id": "api",
        "label": "API",
        "lang": "bash",
        "code": "curl -X POST -H \"Authorization: Bearer $TOKEN\" -H \"Content-Type: application/json\" \\\n  https://levelrail.example.com/api/v1/service-templates/yourls/install \\\n  -d '{\n    \"name\": \"my-yourls\",\n    \"env\": { \"YOURLS_PASS\": \"VALUE\" }\n  }'",
        "note": "Create a token in the dashboard first. Name, env and domains are the request fields."
      }
    ]
  }
}
