--- title: "Self-host Cobalt API with Docker" sidebarTitle: "Cobalt API" description: "A media downloader API that turns links into clean files with no ads or trackers." "og:url": "https://docs.levelrail.com/self-host/cobalt" --- A media downloader API that turns links into clean files with no ads or trackers. This page describes the Levelrail template for Cobalt API (Media). It deploys the services below as one Docker Compose app on your own server. Project site: https://github.com/imputnet/cobalt/blob/main/docs/run-an-instance.md. Recommended memory: about 256 MiB. ## Services, ports and volumes | Service | Image | Container ports | Volumes | | --- | --- | --- | --- | | `cobalt` | `ghcr.io/imputnet/cobalt:11` | 9000 | none | ## Environment variables | Service | Variable | Value | | --- | --- | --- | | `cobalt` | `API_URL` | Preset in the template | Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here. ## Security and requirements Level: **Standard**. What this template needs: - Nothing beyond a standard container: no extra privileges, host mounts or published ports. What Levelrail adds around it: - Automatic HTTPS and an ingress shield in front of every domain. - Deploys are gated on the health check before traffic switches. - One-step rollback to the previous revision. - Exposure report shows what is reachable from outside. - Host firewall rules managed for published ports. ## Deploy Cobalt API with Levelrail In the dashboard, open **Apps**, choose **New app**, then **Browse templates**, and select Cobalt API. Review the Compose body and deploy. With the CLI: ```bash levelrail-cli templates deploy cobalt --name my-cobalt ``` See the [service template catalog](/templates-and-registry) for how templates work, and [Getting started](/getting-started) if you have not installed Levelrail yet. ## More Media templates - [Airsonic Advanced](/self-host/airsonic-advanced) - [Ampache](/self-host/ampache) - [Audiobookshelf](/self-host/audiobookshelf) - [Bazarr](/self-host/bazarr) - [Calibre](/self-host/calibre) All templates are listed in the [self-host gallery](/self-host).