# Self-host Jenkins

> The long-running automation server for building, testing, and deploying with thousands of plugins.

- Page: https://levelrail.com/templates/jenkins/
- JSON: https://levelrail.com/templates/jenkins.json
- Category: Developer Tools
- Licence: MIT (Permissive license)
- Source: https://github.com/jenkinsci/jenkins
- Upstream docs: https://www.jenkins.io/doc

## Requirements
- Memory: about 1 GiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 2.583

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| jenkins | jenkins/jenkins | 2.583 | 8080, 50000 | jenkins_home -> /var/jenkins_home |

## Deploy

### CLI

```bash
levelrail-cli templates deploy jenkins --name my-jenkins
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/jenkins/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 Jenkins on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id jenkins for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image jenkins/jenkins:2.583 is what you deploy there.

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