# Self-host Cockpit CMS

> A headless content platform for managing structured content behind a clean API, without a big CMS footprint.

- Page: https://levelrail.com/templates/cockpit-cms/
- JSON: https://levelrail.com/templates/cockpit-cms.json
- Category: Applications
- Licence: MIT (Permissive license)
- Source: https://github.com/agentejo/cockpit
- Upstream docs: https://getcockpit.com/documentation/

## Requirements
- Memory: about 512 MiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: core-latest

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| cockpit-cms | cockpithq/cockpit | core-latest | 80 | cockpitcms_config -> /var/www/html/config; cockpitcms_storage -> /var/www/html/storage; cockpitcms_spaces -> /var/www/html/.spaces |

## Deploy

### CLI

```bash
levelrail-cli templates deploy cockpit-cms --name my-cockpit-cms
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/cockpit-cms/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy Cockpit CMS on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Cockpit CMS, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image cockpithq/cockpit:core-latest is what you deploy there.

Self-host Cockpit CMS, Cockpit CMS docker compose file, deploy Cockpit CMS on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
