Skip to content

Instantly share code, notes, and snippets.

@swyngaard
Last active March 11, 2019 19:42
Show Gist options
  • Save swyngaard/7bff4e259ea285a89a8ba832e10f8e97 to your computer and use it in GitHub Desktop.
Save swyngaard/7bff4e259ea285a89a8ba832e10f8e97 to your computer and use it in GitHub Desktop.
GoCD docker compose configuration file
version: "3"
services:
gocd_server:
image: gocd/gocd-server:v18.12.0
restart: unless-stopped
environment:
- GOCD_PLUGIN_INSTALL_git-fb-poller=https://github.com/ashwanthkumar/gocd-build-github-pull-requests/releases/download/v1.3.5/git-fb-poller-1.3.5.jar
- GOCD_PLUGIN_INSTALL_github-pr-poller=https://github.com/ashwanthkumar/gocd-build-github-pull-requests/releases/download/v1.3.5/github-pr-poller-1.3.5.jar
- GOCD_PLUGIN_INSTALL_github-pr-status=https://github.com/gocd-contrib/gocd-build-status-notifier/releases/download/1.4/github-pr-status-1.4.jar
- GOCD_PLUGIN_INSTALL_github-oauth=https://github.com/gocd-contrib/github-oauth-authorization-plugin/releases/download/2.2.0/github-oauth-authorization-plugin-2.2.0-21.jar
- GOCD_PLUGIN_INSTALL_script-executor-task=https://github.com/gocd-contrib/script-executor-task/releases/download/0.3/script-executor-0.3.0.jar
- GOCD_PLUGIN_INSTALL_docker-exec-task=https://github.com/cma-arnold/gocd-docker-exec-plugin/releases/download/1.0.0/gocddockerexecplugin-1.0.0.jar
volumes:
- godata-volume:/godata
- gohome-volume:/home/go
ports:
- "127.0.0.1:8153:8153"
- "127.0.0.1:8154:8154"
dind_agent:
image: gocd/gocd-agent-docker-dind:v18.12.0
restart: unless-stopped
privileged: true
environment:
- GO_SERVER_URL="https://gocd_server:8154/go"
volumes:
- gohome-volume:/home/go
depends_on:
- gocd_server
ubuntu_agent:
image: gocd/gocd-agent-ubuntu-18.04:v18.12.0
restart: unless-stopped
environment:
- GO_SERVER_URL="https://gocd_server:8154/go"
volumes:
- gohome-volume:/home/go
depends_on:
- gocd_server
volumes:
godata-volume:
gohome-volume:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment