# Self-host GoCD

> A continuous delivery server with pipeline visualisation, running on a data volume. Needs about 1 GB of memory. Authentication is off until you set it up, so restrict access first.

- Page: https://levelrail.com/templates/gocd/
- JSON: https://levelrail.com/templates/gocd.json
- Category: Developer Tools
- Licence: Apache-2.0 (Permissive license)
- Source: https://github.com/gocd/gocd
- Upstream docs: https://docs.gocd.org/current/

## Requirements
- Memory: about 1 GiB
- amd64: unknown, arm64: unknown
- Needs configuration before start: no
- Pinned image tag: v26.1.0

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| gocd | gocd/gocd-server | v26.1.0 | 8153 | gocd_data -> /godata |

## Deploy

### CLI

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

### API

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

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

## First run
1. Open the dashboard and enable authentication under Admin before exposing it. Agents need to be added separately.

## Questions

### Can I deploy GoCD 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 GoCD, 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 gocd/gocd-server:v26.1.0 is what you deploy there.

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