English
Get started

← All templates · Automation

Deploy Jenkins in one click

An automation server for builds, tests and deploys

A self-hosted alternative to GitHub Actions, CircleCI, and Travis CI.

What is Jenkins?

Jenkins is an open-source automation server for CI/CD, and a self-hosted alternative to GitHub Actions. A push to a repository starts a build, runs the tests and ships the result. The pipeline is code: a Jenkinsfile in the repository lists stages like Build, Test and Deploy and is reviewed like any other change. Every branch and pull request can get its own pipeline automatically. More than 2,000 community plugins connect it to practically any tool in a CI/CD chain, and when one server is not enough, agents on other machines run builds side by side.

People run Jenkins themselves to keep source code, build logs and build credentials on a server they control, and to decide how many builds run at once. It is free under the MIT License, and it keeps jobs and build records as files, not in a database. The catch is upkeep: someone has to keep Jenkins and its plugins up to date.

Hosting Jenkins on Pethost

  1. You sign in to Pethost with a passkey, GitHub or Google. No machine yet? You pick a plan, and the link waits until it is ready.
  2. New project opens at Jenkins, and you click Create project.
  3. In a minute or two Jenkins is live at its own address with HTTPS. Its secrets are made at random, and its data is in the nightly backup.
  4. It is a project like any other: you or your agent can change it, roll it back or restore it.

Questions about Jenkins

Is Jenkins free and open source?

Yes. Jenkins is free and open source under the MIT License, and the plugins it installs come from the project's own catalog of open-source community plugins.

Is Jenkins a good alternative to GitHub Actions?

Yes, if you want builds, logs and credentials on a server you control. Pipelines live in a Jenkinsfile in your repository and can run on agents you add; in exchange, you keep Jenkins and its plugins up to date.

Do I need agents to run Jenkins?

No. Out of the box, Jenkins runs builds on the controller itself. The project advises moving them to agents so a heavy build cannot overload it; with this template, agents connect over WebSocket, needing no extra port.

How do I manage users and permissions in Jenkins?

Jenkins keeps accounts in its own user database. The Matrix Authorization Strategy plugin adds rights per user, group or project, and other plugins add LDAP and single sign-on with SAML or OpenID Connect.

Can Jenkins in Docker run docker commands?

Not out of the box: the official jenkins/jenkins image has no Docker CLI. The Jenkins docs add one in a custom image, with the docker-ce-cli package and the docker-workflow plugin, pointed at a separate Docker daemon.

How much memory and disk does Jenkins need?

Jenkins is heavy: the controller takes about 1 GB, each build more, and workspaces and artifacts fill tens of GB. On Pethost the Grow plan is enough for it, with room for other apps beside it.

Jenkins Docker Compose file

The template is this compose.yaml and the variables written into the project’s .env as it is created. Pethost runs the file as it is written.

Containers: jenkins (jenkins/jenkins:lts-jdk21).

Volumes, in the nightly backup: home.

services:
  jenkins:
    image: jenkins/jenkins:lts-jdk21
    restart: unless-stopped
    volumes:
      # The image declares /var/jenkins_home a volume: jobs, plugins and settings are in it.
      - home:/var/jenkins_home

volumes:
  home:

More in Automation